Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins error "java.lang.NoSuchMethodError: No such DSL method 'node' found among steps ...."

the groovy script starts with

node {
    stage("Checkout"){
        echo "git checkout"
        checkout changelog: false, poll: false, scm: [

This groovy script should checkout a java project and run some maven commands on it.

Error:

java.lang.NoSuchMethodError: No such DSL method 'node' found among steps...

This used to work before some changes, but I couldn't say what what altered. Current version is 2.147 I found it might be a Jenkins plugin issue but nothing more

like image 331
aStripe Avatar asked May 26 '26 19:05

aStripe


1 Answers

It may be a blind shot here, but I would check Nodes and Processes plugin configuration in Jenkins (is plugin enabled? is plugin installed?). Also I would check if other steps which are part of this plugin like sh are working as expected.

like image 60
grzegorzgrzegorz Avatar answered May 28 '26 08:05

grzegorzgrzegorz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!