Search This Blog

Wednesday, November 21, 2018

Create your Pipeline project in Jenkins

  1. Click New Item at the top left.
  2. In the Enter an item name field, specify the name for your new Pipeline project (e.g. simple-java-maven-app).
  3. Scroll down and click Pipeline, then click OK at the end of the page.
  4. Optional ) On the next page, specify a brief description for your Pipeline in the Description field 
  5. Click the Pipeline tab at the top of the page to scroll down to the Pipeline section.
  6. From the Definition field, choose the Pipeline script from SCM option. This option instructs Jenkins to obtain your Pipeline from Source Control Management (SCM), which will be your locally cloned Git repository.
  7. From the SCM field, choose Git.
  8. In the Repository URL field, specify the directory path of your locally cloned repository above, which is from your user account/home directory on your host machine, mapped to the /home directory of the Jenkins container - i.e.
    • For macOS - /home/Documents/GitHub/simple-java-maven-app
    • For Linux - /home/GitHub/simple-java-maven-app
    • For Windows - /home/Documents/GitHub/simple-java-maven-app
  9. Click Save to save your new Pipeline project. You’re now ready to begin creating your Jenkinsfile, which you’ll be checking into your locally cloned Git repository.