I keep getting this error for the declarative pipeline script in Jenkins.
No such DSL method 'pipeline' found among steps
My script is like this
pipeline {
agent any
stages {
stage('Example Build') {
steps {
echo 'Hello World'
}
}
}
}
I have Jenkins version 2.19.4. Hopefully i have installed all the required plugins. Why do i get this exception ?