Continuous Integration
Continuous Integration
JENKINS : Introduction
The Practice
➤ Maintain a single source repository.
➤ Automate the build.
➤ Make your build self-testing.
➤ Make it easy for anyone to get the latest executable version.
➤ Everyone can see what’s happening.
➤ Automate deployment.
JENKINS : Introduction
How to Do it
➤ Developers check out code into their own workspaces.
➤ When done, commit the changes to the repository.
➤ CI server monitors the repository and checks out changes when they
occur.
➤ CI server builds the system and runs unit and integration tests.
➤ CI server releases deployable artefacts for testing.
➤ CI server assigns a build label to the version of the code it just built.
➤ CI server informs the team of the successful build.
➤ If the build or tests fail, the CI server alerts the team.
➤ The team fixes the issue at the earliest opportunity.
JENKINS : Introduction
Teams Responsibility
➤ Check in frequently.
➤ Don’t check in broken code.
➤ Don’t check in untested code.
➤ Don’t check in when the build is broken.
JENKINS : Introduction
Continuous Integration
➤ The Practice of merging stable Develop work branch with
the main branch constantly.
Continuous Delivery
➤ Continual Delivery of Code to an environment once the code
is ready to ship.
➤ Environment could be staging or production. First product is
deliver to QAs and Review before shipping to Customer/
Production.
JENKINS : Introduction
Continuous Deployment
➤ Essentially, it is the practice of releasing every good build
to users.
➤ The deployment of Product in Production as soon as it’s
ready.