Am running Jenkins v2.3x with Pipeline plugin running at v2.x In the repo root, I have a Jenkinsfile from which shared library is meant to be used.
repo_root / |_____ Jenkinsfile | |_____ vars / | |____ buildUtils.groovy Within the buildUtils.groovy, this is the code snippet: #!groovy def call(body) { def config = [:] body.resolveStrategy = Closure.DELEGATE_FIRST body.delegate = config body() node('linux') { checkout scm def url = "https://github.com/jenkinsci/${config.name}-plugin.git" echo " == URL with repo name == " echo "${url}" } } With this setup in place, running Jenkins build job for this repo, fails with this error: [Pipeline] End of Pipelinejava.lang.NoSuchMethodError: No such DSL method 'buildUtils' found among steps I have been scourging forums here, in SO, in Google but no real solutions seem to be available (atleast, it seems to escape my eyes). What's going wrong here ? TIA, /Ram -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ebb3f082-7fea-4e72-b5b6-c1752c19d5db%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.