Hi people. I create a parameterized job and I want to access the value of parameter, but I get the following error:
My job parameterized:
-
My JenkinsFile
-
My call
-
My Pipeline.groovy
-
My PipelineDevelop.groovy
Can anyone help me?
Hi people. I create a parameterized job and I want to access the value of parameter, but I get the following error:
My job parameterized:
My JenkinsFile
My call
My Pipeline.groovy
My PipelineDevelop.groovy
Can anyone help me?
steps.sh "echo ${steps.params.ambiente}"
I need to import some package?
the way I have it is
Jenkinsfile
callPipeline(this)
var/callPipeline.groovy
def call(Object script) {
def first = new Pipeline(script)
first.run()
}
src/…/Pipeline.groovy
public class Pipeline implements Serializable {
def Pipeline(script) {
this.script = script
}
def run() {
script.sh "echo ${script.params.paramname}"
}
}
This is exactly as explained here: Extending with Shared Libraries