Creating a Jenkins Pipeline Job
July 15, 2025
How to create the pipeline job that runs your Jenkinsfile.
Steps
- Jenkins dashboard → New Item → give it a name → choose Pipeline → OK.
- In the Pipeline section, choose:
- Pipeline script from SCM → SCM = Git → paste your forked repo URL
- Branch =
main· Script Path =Jenkinsfile
(This tells Jenkins to read the Jenkinsfile from your repo.) - Save → Build Now.
- Watch Stage View / Console Output for each stage.
Quick-demo alternative: choose Pipeline script and paste the Jenkinsfile contents directly into the box instead of pulling from SCM.
Gotchas
mainvsmaster— the branch name must match your repo.- The first build may be slow (it pulls base images like
node:18-alpineandnginx:alpine).
Then it runs the pipeline defined in [[jenkins-jenkinsfile-explained]]. Prerequisites: [[jenkins-install]] and [[jenkins-docker-hub-credentials]].