# Create Simple Scripted Pipeline

In 
Published 2022-12-03

This tutorial explains to you how to create Simple Scripted Pipeline in Jenkins.

First of all we need to create a "Pipeline" project type:

Choose a name for the project, click on "Pipeline" and after that click on "Ok". A new screen will appear. Here is the "Pipeline" definition area:

We need to keep "Pipeline script".

In the script zone we can enter the following code:

node {
    
    stage('Preparation') { // for display purposes
        echo "Something done in 'Preparation' Stage."
    }
    stage('Build') {
        echo "Something done in 'Build' Stage."
        bat "dir"
    }
    stage('Results') {
        echo "Something done in 'Results' Stage."
    }
}

We click on "OK" button, and we will see the following screen:

We will click on "Build Now" and the job will start running. At the end we will see the following in the console: