Jenkins – Hello World
Everything in the entire IT world starts with the Hello World
example, to show that the basics work fine. Let's follow this rule and use it to create the first Jenkins pipeline:
- Click on New Item:
Figure 3.2 – New Item in the Jenkins web interface
- Enter
hello world
as the item name, choose Pipeline, and click on OK:
Figure 3.3 – A new pipeline in the Jenkins web interface
- There are a lot of options. We will skip them for now and go directly to the Pipeline section:
Figure 3.4 – Pipeline script in the Jenkins web interface
- Then, in the Script textbox, we can enter the pipeline script:
pipeline { agent any stages { stage("Hello") { ...