Skip to content

Jenkins Pipelines

Warning

This style of pipeline definition is deprecated. When possible, please use the declarative version.

Jenkins Pipeline is a suite of plugins which supports implementing and integrating continuous delivery pipelines into Jenkins. Pipeline provides an extensible set of tools for modeling simple-to-complex delivery pipelines "as code" via the Pipeline DSL.

There are two ways to create pipelines in Jenkins. Either via the Groovy DSL or via the Declarative pipeline.

For more information about the declarative pipeline, read the next page.

Hello World Example

node {
    timestamps {
        stage ('My FIrst Stage') {
            if (isUnix()) {
                sh 'echo "this is Unix!"'
            } else {
                bat 'echo "this is windows"'
            }
        }
    }
}

Resources


Last update: 2017-06-24 16:00:02