In the world of IT, everything begins with a classic "Hello World" example.

Let’s follow this tradition and walk through the steps to create your very first Jenkins pipeline:

Step 1: Create a New Item:

Start by clicking on New Item in the Jenkins dashboard.

Step 2: Name Your Pipeline:

Enter hello-world

as the item name, select Pipeline, and then click OK.

Step 3: Skip Initial Options:

You’ll see several options, but for now, let’s skip these and head directly to the Pipeline section.

Enter the Pipeline Script: In the Script textbox, Copy and paste following script:

pipeline {
    agent any
    stages {
        stage("Say Hello") {
            steps {
                echo 'Hello World'
            }
        }
    }
}

Step 4: Save Your Work

Click on Save to store your pipeline configuration.

Step 5: Build the Pipeline: Now, click on Build Now to execute your pipeline.

After following these steps, you should see a new entry (#1) under the Build History.

Click on it, and then select Console Output to view the log from your pipeline build.

Congratulations! 🥳

You've just completed your first Jenkins pipeline, and the successful output confirms that Jenkins is installed and configured correctly👏

Now, let’s transition to slightly more advanced configurations to further enhance our Jenkins setup!