SlideShare une entreprise Scribd logo
1  sur  15
Build             A Project




            Build Using
Automated
             Team City
            -: Md. Jawed
              jawed.ace@gmail.com
BUILD Automation




Manual     What are we…

 Automate
 Build
            Where do we want to be..

TeamCity
   +
MsBuild
           How do we get there..
Problem Statement



Currently the Code is getting Compiled on Developer Local machine involvement
of Manual Steps.

Which is prone for error(s) as:
1. Time Consuming.
2. Trigger some build operations from within a development environment (IDE) is
   usually not sufficient: as it is often the case that some build operations are not
   supported within the IDE, it must be possible to perform a build outside of the IDE.
3. Introduce of Human Error.
4. No centralized Drop location
5. No instant Build notification to other team members about whether build failed or
   passed.
6. No Dedicated Build server.
7. Currently while compiling the code no Unit test, Code coverage and other analyses
   process getting executed. Just straight forward F5 or right click Select Build of
   respective project.
Automated Build Process



An automated build process compiles, deploys and then runs build verification tests
(BVTs) against the latest source code for a project at regular, predetermined intervals.
Then a “build report,” which details the success or failure of the build process, is
disseminated to the project stakeholders. The build report is analyzed to determine
what areas of the project need attention and/or if the project should be rolled back
to an earlier version/build.

The power of an automated build process is it can be scheduled to be run during “off
hours” so it can help ensure the stability of the project without taking cycles directly
away from the development time. This topic provides an overview of the build
process, describes how build verification testing fits into the build process, describes
aspects of functional testing used during build verification testing and provides
information about the importance of automating the build process.
Automated Build Process

Advantages :
1. No More F5 or Right click Build.
2. An automated build process runs faster, saving valuable time in the development and
    deployment process.
3. An automated build requires less manual involvement, reducing the developer’s work load.
4. An automated build is more reliable because it reduces the number of opportunities for
   human error.
5. In an automated build process all actions are scripted, which creates intrinsic
   documentation of the steps involved in the build.
6. Builds Definition based on Environment like separated Build for DEV, DEV-Q, test and
    Production.
7. Build notifications.
8. Integrated the Build to run Unit test, Code Coverage or code Quality while compiling the
    tool. And published the result to Respective Stack Holder.
9. Builds can run at night – less network load, effective resource utilization
           -Early error detection (e.g. continuous integration, automated unit testing)
           -Automatic log archiving (all the information is saved)
           -Better processes – automation requires process revision and simplification, which
           more often than not leads to process improvement.
10. More Important
Improved Software Quality
Solution

        We have decided to Use Team City to Automate our Build Process.

What TeamCity Offers
 •     Software build automation and management
 •     Team communication for the above
 •     Code inspection and coverage analysis
 •     Platform agnostic
 •     Free professional version
•     Automate code analyzing, compiling, and testing processes, providing instant
•     feedback on build progress, problems and test failures, all in simple, intuitive
•     web-interface;
•     Run multiple builds and tests under different configurations and platforms
•     simultaneously.
•      Perform Pre-tested commits, helping the rest of a team sustain an
•      uninterrupted workflow.
•      Have build history insight with customizable statistics on build duration, success
     rate, code quality and custom metrics.
Pulling It All Together


• Periodically (to process daily or nightly builds), or
• upon version control system check-in (by setting up VCS triggers), or
• upon another build successful completion (by setting up dependencies).
• TeamCity offers multiple ways to instantly notify you about build problems or any
  other changes in your projects
• Detailed Test Results Analysis
• Analysis of Unit Tests code coverage
• Build History




 For more information visit Below Link
http://www.jetbrains.com/teamcity/features/index.html
Approaches


Separate Build server installed with Teamcity and Different Builds definition for respective
Branch, Trunk, Tag and for Individual use.


     SVN Structure                         Team City Builds             Drop Location




                                                 Dev Build                     Dev


                                                Internal Test                Internal
                                                    Build                     Test-Q

                                                  Test Build                   Test


                                                 Production                 Production
                                                    Build
System Requirements


To Setup Team city to Automate Build process we need below Server/Hardware and Software


   Server: Windows 2008
   Data Base: MS Sql server 2008 R2
   Software Installed: Visual Studio 2010
                     IIS7.0+
                     Nunit
                     Team City
                     any Acetarx dependencies
                     FXCop

   Login: Dedicated Teamcity AD ,Having SVN permission
   EmailID: Dedicated emailid for Notification.
   Port: 8111
END TO END
Private Build-pre-tested commits
Private Build-pre-tested commits
Best Practices For Project Layout in SVN
Here are some best practices for getting the most out of your project layout:
Project root – This is the anchoring point for a project. A repository may contain one
project root, or multiple roots, but each project root contains three subdirectories: /trunk,
/branches, and /tags. The use of a project root is officially recommended by the Apache
Subversion project.
Trunk - This is where you should store current release code – only! Don’t muddy the trunk
directory with revisions or release names.
Branches – Use these to work on significant changes, variations of code etc, without
disrupting the current release code.
Bug fixing on a branch – Branches should be created to fix major bugs; this allows bug
changes to be immediately worked on without disrupting whatever work is currently
underway in the trunk/development branches.
“Toe in the water” branches – Branches can be used as a code “sandbox” where new
technology can be tested without risking the working code. If things go right, the new code
can always be merged back into the trunk.
Tags – Should be used as “code milestones” providing a snapshot of the code at specific
points in its history.
Tagging bug fix / development branches – when creating a code or bug fix branch, it’s
useful to create a “pre” tag, and a “post” tag after the bug fix or code change has been
completed:
http://10.2.5.2:9880/encom/tags/PRE_authchange_bug9343
http://10.2.5.2:9880/encom/tags/POST_authchange_bug9343
Perform Operation




                                              Copy to drop
                                  Published   location

                       Run test


         Compilation


Check
Out on
Agent
Questions & Answers

Contenu connexe

Tendances

How TeamCity Shines for You, May 26th Webinar
How TeamCity Shines for You, May 26th WebinarHow TeamCity Shines for You, May 26th Webinar
How TeamCity Shines for You, May 26th WebinarWes Higbee
 
Showdown CI/CD - TeamCity
Showdown CI/CD - TeamCityShowdown CI/CD - TeamCity
Showdown CI/CD - TeamCityBoyan Mihaylov
 
From Continuous integration to Continuous Delivery with TeamCity
From Continuous integration to Continuous Delivery with TeamCityFrom Continuous integration to Continuous Delivery with TeamCity
From Continuous integration to Continuous Delivery with TeamCitySergey Pak
 
Continuous Integration with Bamboo for Salesforce
Continuous Integration with Bamboo for SalesforceContinuous Integration with Bamboo for Salesforce
Continuous Integration with Bamboo for SalesforceKlea Kolaric
 
Bamboo Continuous Integration Server - Brief
Bamboo Continuous Integration Server - BriefBamboo Continuous Integration Server - Brief
Bamboo Continuous Integration Server - BriefEllen Feaheny
 
BizTalk ALM (Toon Vanhoutte @ Integration Monday)
BizTalk ALM (Toon Vanhoutte @ Integration Monday)BizTalk ALM (Toon Vanhoutte @ Integration Monday)
BizTalk ALM (Toon Vanhoutte @ Integration Monday)Codit
 
Continuous Integration
Continuous IntegrationContinuous Integration
Continuous Integrationelliando dias
 
Continuous integration using atlassian bamboo
Continuous integration using atlassian bambooContinuous integration using atlassian bamboo
Continuous integration using atlassian bambooAlexander Masalov
 
Continuous deployment steve povilaitis
Continuous deployment   steve povilaitisContinuous deployment   steve povilaitis
Continuous deployment steve povilaitisSteve Povilaitis
 
CI/CD Overview
CI/CD OverviewCI/CD Overview
CI/CD OverviewAn Nguyen
 
QConSP 2014 - Continuous Delivery - Part 03 - Continuous Integration
QConSP 2014 - Continuous Delivery - Part 03 - Continuous IntegrationQConSP 2014 - Continuous Delivery - Part 03 - Continuous Integration
QConSP 2014 - Continuous Delivery - Part 03 - Continuous IntegrationRodrigo Russo
 
Automate your build on Android with Jenkins
Automate your build on Android with JenkinsAutomate your build on Android with Jenkins
Automate your build on Android with JenkinsBeMyApp
 
Introduce to Git and Jenkins
Introduce to Git and JenkinsIntroduce to Git and Jenkins
Introduce to Git and JenkinsAn Nguyen
 
Build automation best practices
Build automation best practicesBuild automation best practices
Build automation best practicesCode Mastery
 

Tendances (20)

How TeamCity Shines for You, May 26th Webinar
How TeamCity Shines for You, May 26th WebinarHow TeamCity Shines for You, May 26th Webinar
How TeamCity Shines for You, May 26th Webinar
 
Showdown CI/CD - TeamCity
Showdown CI/CD - TeamCityShowdown CI/CD - TeamCity
Showdown CI/CD - TeamCity
 
From Continuous integration to Continuous Delivery with TeamCity
From Continuous integration to Continuous Delivery with TeamCityFrom Continuous integration to Continuous Delivery with TeamCity
From Continuous integration to Continuous Delivery with TeamCity
 
Continuous Integration with Bamboo for Salesforce
Continuous Integration with Bamboo for SalesforceContinuous Integration with Bamboo for Salesforce
Continuous Integration with Bamboo for Salesforce
 
Bamboo Continuous Integration Server - Brief
Bamboo Continuous Integration Server - BriefBamboo Continuous Integration Server - Brief
Bamboo Continuous Integration Server - Brief
 
BizTalk ALM (Toon Vanhoutte @ Integration Monday)
BizTalk ALM (Toon Vanhoutte @ Integration Monday)BizTalk ALM (Toon Vanhoutte @ Integration Monday)
BizTalk ALM (Toon Vanhoutte @ Integration Monday)
 
Jenkins
JenkinsJenkins
Jenkins
 
Continuous Integration
Continuous IntegrationContinuous Integration
Continuous Integration
 
Continuous integration
Continuous integrationContinuous integration
Continuous integration
 
Continuous integration using atlassian bamboo
Continuous integration using atlassian bambooContinuous integration using atlassian bamboo
Continuous integration using atlassian bamboo
 
Jenkins CI
Jenkins CIJenkins CI
Jenkins CI
 
Continuous deployment steve povilaitis
Continuous deployment   steve povilaitisContinuous deployment   steve povilaitis
Continuous deployment steve povilaitis
 
CI/CD Overview
CI/CD OverviewCI/CD Overview
CI/CD Overview
 
QConSP 2014 - Continuous Delivery - Part 03 - Continuous Integration
QConSP 2014 - Continuous Delivery - Part 03 - Continuous IntegrationQConSP 2014 - Continuous Delivery - Part 03 - Continuous Integration
QConSP 2014 - Continuous Delivery - Part 03 - Continuous Integration
 
CICD by Teerapat
CICD by TeerapatCICD by Teerapat
CICD by Teerapat
 
Jenkins
JenkinsJenkins
Jenkins
 
Automate your build on Android with Jenkins
Automate your build on Android with JenkinsAutomate your build on Android with Jenkins
Automate your build on Android with Jenkins
 
Continuous integration
Continuous integrationContinuous integration
Continuous integration
 
Introduce to Git and Jenkins
Introduce to Git and JenkinsIntroduce to Git and Jenkins
Introduce to Git and Jenkins
 
Build automation best practices
Build automation best practicesBuild automation best practices
Build automation best practices
 

Similaire à Automated Build using teamcity

Enabling Continuous Integration with Azure Pipelines
Enabling Continuous Integration with Azure PipelinesEnabling Continuous Integration with Azure Pipelines
Enabling Continuous Integration with Azure PipelinesEng Teong Cheah
 
Continuous Integration: A Case Study
Continuous Integration: A Case StudyContinuous Integration: A Case Study
Continuous Integration: A Case StudyIndicThreads
 
Flight East 2018 Presentation–Continuous Integration––An Overview
Flight East 2018 Presentation–Continuous Integration––An OverviewFlight East 2018 Presentation–Continuous Integration––An Overview
Flight East 2018 Presentation–Continuous Integration––An OverviewSynopsys Software Integrity Group
 
Jenkins_1679702972.pdf
Jenkins_1679702972.pdfJenkins_1679702972.pdf
Jenkins_1679702972.pdfMahmoudAlnmr1
 
Continuous Integration
Continuous IntegrationContinuous Integration
Continuous IntegrationXPDays
 
CI, CD -Tools to integrate without manual intervention
CI, CD -Tools to integrate without manual interventionCI, CD -Tools to integrate without manual intervention
CI, CD -Tools to integrate without manual interventionajayrajaganeshkayala
 
Continous integration and delivery for single page applications
Continous integration and delivery for single page applicationsContinous integration and delivery for single page applications
Continous integration and delivery for single page applicationsSunil Dalal
 
What is Continuous Integration and Continuous Delivery
What is Continuous Integration and Continuous Delivery What is Continuous Integration and Continuous Delivery
What is Continuous Integration and Continuous Delivery Sarah Elson
 
Delivering Quality Software with Continuous Integration
Delivering Quality Software with Continuous IntegrationDelivering Quality Software with Continuous Integration
Delivering Quality Software with Continuous IntegrationAspire Systems
 
MF_Modernization.pptx
MF_Modernization.pptxMF_Modernization.pptx
MF_Modernization.pptxManishaCh5
 
A Continuous Delivery Safety Net for Databases
A Continuous Delivery Safety Net for DatabasesA Continuous Delivery Safety Net for Databases
A Continuous Delivery Safety Net for DatabasesIBM UrbanCode Products
 
PratheshBV_Resume
PratheshBV_ResumePratheshBV_Resume
PratheshBV_Resumepradeesh bv
 
Software engineering
Software engineeringSoftware engineering
Software engineeringbartlowe
 
Continuous Integration to Shift Left Testing Across the Enterprise Stack
Continuous Integration to Shift Left Testing Across the Enterprise StackContinuous Integration to Shift Left Testing Across the Enterprise Stack
Continuous Integration to Shift Left Testing Across the Enterprise StackDevOps.com
 
Hudson
HudsonHudson
Hudson8x8
 
Continuous Everything
Continuous EverythingContinuous Everything
Continuous EverythingAndrea Tino
 
Advanced Techniques for Initiating the DevOps Journey
Advanced Techniques for Initiating the DevOps JourneyAdvanced Techniques for Initiating the DevOps Journey
Advanced Techniques for Initiating the DevOps JourneyCA Technologies
 
TMF2014 CI-CD Workshop Michael Palotas
TMF2014 CI-CD Workshop Michael PalotasTMF2014 CI-CD Workshop Michael Palotas
TMF2014 CI-CD Workshop Michael PalotasKJR
 

Similaire à Automated Build using teamcity (20)

Enabling Continuous Integration with Azure Pipelines
Enabling Continuous Integration with Azure PipelinesEnabling Continuous Integration with Azure Pipelines
Enabling Continuous Integration with Azure Pipelines
 
Continuous Integration: A Case Study
Continuous Integration: A Case StudyContinuous Integration: A Case Study
Continuous Integration: A Case Study
 
Flight East 2018 Presentation–Continuous Integration––An Overview
Flight East 2018 Presentation–Continuous Integration––An OverviewFlight East 2018 Presentation–Continuous Integration––An Overview
Flight East 2018 Presentation–Continuous Integration––An Overview
 
Jenkins_1679702972.pdf
Jenkins_1679702972.pdfJenkins_1679702972.pdf
Jenkins_1679702972.pdf
 
jenkins.pdf
jenkins.pdfjenkins.pdf
jenkins.pdf
 
Continuous Integration
Continuous IntegrationContinuous Integration
Continuous Integration
 
CI, CD -Tools to integrate without manual intervention
CI, CD -Tools to integrate without manual interventionCI, CD -Tools to integrate without manual intervention
CI, CD -Tools to integrate without manual intervention
 
Continous integration and delivery for single page applications
Continous integration and delivery for single page applicationsContinous integration and delivery for single page applications
Continous integration and delivery for single page applications
 
What is Continuous Integration and Continuous Delivery
What is Continuous Integration and Continuous Delivery What is Continuous Integration and Continuous Delivery
What is Continuous Integration and Continuous Delivery
 
Delivering Quality Software with Continuous Integration
Delivering Quality Software with Continuous IntegrationDelivering Quality Software with Continuous Integration
Delivering Quality Software with Continuous Integration
 
MF_Modernization.pptx
MF_Modernization.pptxMF_Modernization.pptx
MF_Modernization.pptx
 
Dev ops using Jenkins
Dev ops using JenkinsDev ops using Jenkins
Dev ops using Jenkins
 
A Continuous Delivery Safety Net for Databases
A Continuous Delivery Safety Net for DatabasesA Continuous Delivery Safety Net for Databases
A Continuous Delivery Safety Net for Databases
 
PratheshBV_Resume
PratheshBV_ResumePratheshBV_Resume
PratheshBV_Resume
 
Software engineering
Software engineeringSoftware engineering
Software engineering
 
Continuous Integration to Shift Left Testing Across the Enterprise Stack
Continuous Integration to Shift Left Testing Across the Enterprise StackContinuous Integration to Shift Left Testing Across the Enterprise Stack
Continuous Integration to Shift Left Testing Across the Enterprise Stack
 
Hudson
HudsonHudson
Hudson
 
Continuous Everything
Continuous EverythingContinuous Everything
Continuous Everything
 
Advanced Techniques for Initiating the DevOps Journey
Advanced Techniques for Initiating the DevOps JourneyAdvanced Techniques for Initiating the DevOps Journey
Advanced Techniques for Initiating the DevOps Journey
 
TMF2014 CI-CD Workshop Michael Palotas
TMF2014 CI-CD Workshop Michael PalotasTMF2014 CI-CD Workshop Michael Palotas
TMF2014 CI-CD Workshop Michael Palotas
 

Dernier

TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesBoston Institute of Analytics
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 

Dernier (20)

TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 

Automated Build using teamcity

  • 1. Build A Project Build Using Automated Team City -: Md. Jawed jawed.ace@gmail.com
  • 2. BUILD Automation Manual What are we… Automate Build Where do we want to be.. TeamCity + MsBuild How do we get there..
  • 3. Problem Statement Currently the Code is getting Compiled on Developer Local machine involvement of Manual Steps. Which is prone for error(s) as: 1. Time Consuming. 2. Trigger some build operations from within a development environment (IDE) is usually not sufficient: as it is often the case that some build operations are not supported within the IDE, it must be possible to perform a build outside of the IDE. 3. Introduce of Human Error. 4. No centralized Drop location 5. No instant Build notification to other team members about whether build failed or passed. 6. No Dedicated Build server. 7. Currently while compiling the code no Unit test, Code coverage and other analyses process getting executed. Just straight forward F5 or right click Select Build of respective project.
  • 4. Automated Build Process An automated build process compiles, deploys and then runs build verification tests (BVTs) against the latest source code for a project at regular, predetermined intervals. Then a “build report,” which details the success or failure of the build process, is disseminated to the project stakeholders. The build report is analyzed to determine what areas of the project need attention and/or if the project should be rolled back to an earlier version/build. The power of an automated build process is it can be scheduled to be run during “off hours” so it can help ensure the stability of the project without taking cycles directly away from the development time. This topic provides an overview of the build process, describes how build verification testing fits into the build process, describes aspects of functional testing used during build verification testing and provides information about the importance of automating the build process.
  • 5. Automated Build Process Advantages : 1. No More F5 or Right click Build. 2. An automated build process runs faster, saving valuable time in the development and deployment process. 3. An automated build requires less manual involvement, reducing the developer’s work load. 4. An automated build is more reliable because it reduces the number of opportunities for human error. 5. In an automated build process all actions are scripted, which creates intrinsic documentation of the steps involved in the build. 6. Builds Definition based on Environment like separated Build for DEV, DEV-Q, test and Production. 7. Build notifications. 8. Integrated the Build to run Unit test, Code Coverage or code Quality while compiling the tool. And published the result to Respective Stack Holder. 9. Builds can run at night – less network load, effective resource utilization -Early error detection (e.g. continuous integration, automated unit testing) -Automatic log archiving (all the information is saved) -Better processes – automation requires process revision and simplification, which more often than not leads to process improvement. 10. More Important Improved Software Quality
  • 6. Solution We have decided to Use Team City to Automate our Build Process. What TeamCity Offers • Software build automation and management • Team communication for the above • Code inspection and coverage analysis • Platform agnostic • Free professional version • Automate code analyzing, compiling, and testing processes, providing instant • feedback on build progress, problems and test failures, all in simple, intuitive • web-interface; • Run multiple builds and tests under different configurations and platforms • simultaneously. • Perform Pre-tested commits, helping the rest of a team sustain an • uninterrupted workflow. • Have build history insight with customizable statistics on build duration, success rate, code quality and custom metrics.
  • 7. Pulling It All Together • Periodically (to process daily or nightly builds), or • upon version control system check-in (by setting up VCS triggers), or • upon another build successful completion (by setting up dependencies). • TeamCity offers multiple ways to instantly notify you about build problems or any other changes in your projects • Detailed Test Results Analysis • Analysis of Unit Tests code coverage • Build History  For more information visit Below Link http://www.jetbrains.com/teamcity/features/index.html
  • 8. Approaches Separate Build server installed with Teamcity and Different Builds definition for respective Branch, Trunk, Tag and for Individual use. SVN Structure Team City Builds Drop Location Dev Build Dev Internal Test Internal Build Test-Q Test Build Test Production Production Build
  • 9. System Requirements To Setup Team city to Automate Build process we need below Server/Hardware and Software  Server: Windows 2008  Data Base: MS Sql server 2008 R2  Software Installed: Visual Studio 2010 IIS7.0+ Nunit Team City any Acetarx dependencies FXCop  Login: Dedicated Teamcity AD ,Having SVN permission  EmailID: Dedicated emailid for Notification.  Port: 8111
  • 13. Best Practices For Project Layout in SVN Here are some best practices for getting the most out of your project layout: Project root – This is the anchoring point for a project. A repository may contain one project root, or multiple roots, but each project root contains three subdirectories: /trunk, /branches, and /tags. The use of a project root is officially recommended by the Apache Subversion project. Trunk - This is where you should store current release code – only! Don’t muddy the trunk directory with revisions or release names. Branches – Use these to work on significant changes, variations of code etc, without disrupting the current release code. Bug fixing on a branch – Branches should be created to fix major bugs; this allows bug changes to be immediately worked on without disrupting whatever work is currently underway in the trunk/development branches. “Toe in the water” branches – Branches can be used as a code “sandbox” where new technology can be tested without risking the working code. If things go right, the new code can always be merged back into the trunk. Tags – Should be used as “code milestones” providing a snapshot of the code at specific points in its history. Tagging bug fix / development branches – when creating a code or bug fix branch, it’s useful to create a “pre” tag, and a “post” tag after the bug fix or code change has been completed: http://10.2.5.2:9880/encom/tags/PRE_authchange_bug9343 http://10.2.5.2:9880/encom/tags/POST_authchange_bug9343
  • 14. Perform Operation Copy to drop Published location Run test Compilation Check Out on Agent