Introduction to Jenkins
Introduction to Jenkins
What is Jenkins
What is Jenkins
─ Jenkin is the most popular, open source Continuous Integration and Continuous Deployment Tool.
─ Continuous Integration : is a development practice that requires developers to integrate code into a shared repository
several times a day. It will have multiple integrations with various AU Tools.
─ Continuous Deployment : is the process that takes validated Features in a staging environment and deploys them into
the production environment.
─ Jenkins is used to build and test your software projects continuously making it easier for developers to integrate changes
to the project.
─ It also allows you to continuously deliver your software by integrating with a large number of testing and deployment
technologies.
─ Jenkins achieves Continuous Integration with the help of plugins. Plugins allow the integration of Various DevOps stages.
─ Agent:
─ Jenkins provides the ability to perform distributed builds by delegating them to “agent” nodes.
─ Doing this allows you to execute several projects with only one instance of the Jenkins server, while the workload
is distributed to its agents.
Ex:
pipeline {
agent none
stages {
stage('Run Tests') {
parallel {
stage('Test On Windows') {
agent { label "windows" }
steps {
bat "run-tests.bat"
}
}
stage('Test On Linux') {
agent { label "linux" }
steps {
sh "run-tests.sh"
}}}}
}
}
}
}}
}
}