Search code examples
jenkinsjenkins-pipelinejenkins-groovy

Jenkins pipeline script not running


For the below pipeline script, "Helo World" is not printing. And even node is not getting allocated.

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

enter image description here


Solution

  • Installed "Pipeline: Declarative" plugin (to run declarative Pipeline scripts) and this worked.