Chapter 10: Jenkins Introduction
10.6 Pipeline job from SCM
Steps — Pipeline job wired to Git
- In Jenkins, New Item → Pipeline (name
badge-api-ci). - Under Pipeline definition choose Pipeline script from SCM.
- Point at your GitHub (or Git) repo URL; configure credentials if the repo is private.
- Set script path
Jenkinsfile. - For GitHub, prefer a webhook or SCM polling for labs — follow current GitHub/Jenkins plugin docs for your versions.
- Run Build Now; open Console Output.
- Fix red stages by changing the Jenkinsfile in Git — not only by clicking Freestyle fields.
What you see: Blue/green stage balls (or classic console text). Red Test stage → pytest output in the log, same debugging spirit as Actions.