#!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}"
}
}
[Pipeline] End of Pipeline java.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
* how does your Jenkisfile look like
* do you have global shared library configured or per folder?
* which version of the shared library do you adress? Is your script available in that version?
* do you have same script in the internal repo?
try to separate your Jenkinsfile from the code of your shared library. Usually the shared library provides some global functions that you may re-use in some Jenkinsfile(s)
=> the library is shared code, the Jenkinsfile belongs to your project(s) using that library.
Than, make sure you know what version of the library you are using:
- configure it in Jenkins/manage Jenkins -> global shared library. Here you´ll have to setup repo, branch, credentials to your shared library.
You can also configure it on a per folder base and you may reference it using the annotation@Library('somelib')