💾Thananjhayan
← Back to notes

Creating a Jenkins Pipeline Job

July 15, 2025

How to create the pipeline job that runs your Jenkinsfile.

Steps

  1. Jenkins dashboard → New Item → give it a name → choose Pipeline → OK.
  2. 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.)
  3. SaveBuild Now.
  4. 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

  • main vs master — the branch name must match your repo.
  • The first build may be slow (it pulls base images like node:18-alpine and nginx:alpine).

Then it runs the pipeline defined in [[jenkins-jenkinsfile-explained]]. Prerequisites: [[jenkins-install]] and [[jenkins-docker-hub-credentials]].

💬 Comments