Jenkins is an automation server that runs build and test steps whenever code changes. Many DevOps learners start their CI/CD practice with it.
Key terms
- Job or pipeline: the steps Jenkins runs.
- Build: one run of that job.
- Jenkinsfile: a text file in your repository that describes the pipeline as code.
A first pipeline
- Install Jenkins on a test machine or in a container.
- Connect it to a Git repository.
- Add stages to check out the code, build it and run the tests.
- Trigger a build and read the console output.
Good habits
- Keep the pipeline in a Jenkinsfile, so it is versioned with the code.
- Store passwords and keys in Jenkins credentials, not in the file.
- Make a failed test stop the pipeline.
Next step: see our cloud, AWS and DevOps course at ScholarLogic, or book a free demo class. A counsellor will share the fee and the next batch dates.
