Issue
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'
}
}
}
}
Solution
Installed "Pipeline: Declarative" plugin (to run declarative Pipeline scripts) and this worked.
Answered By - Naveen Kumar Yallampalli
Answer Checked By - David Marino (JavaFixing Volunteer)