Everything in the entire IT world starts from the Hello World example.
Let's follow this rule and see the steps to create the first Jenkins pipeline:
- Click on New Item.
- Enter hello world as the item name, choose Pipeline, and click on OK.
- There are a lot of options. We will skip them for now and go directly to the Pipeline section.
- There, in the Script textbox, we can enter the pipeline script:
pipeline {
agent any
stages {
stage("Hello") {
steps {
echo 'Hello World'
}
}
}
}
- Click on Save.
- Click on Build Now.
We should see #1 under the Build History. If we click on it, and then on Console Output, we will see the log from the Pipeline build.
![](https://static.packt-cdn.com/products/9781787125230/graphics/assets/f92e6578-95d9-4afa-870e-290c65c81417.png)
We have just seen the first example and its successful...