Parameter access with in a groovy script in jenkins throws exception

Published: 31/01/2018
Parameter access with in a groovy script in jenkins throws exception
Source: STACKOVERFLOW.COM

I have a string parameter called VERSION which is set to example - 0000 Below is what i am trying in groovy pipeline in jenkins import hudson.model.* /*// get parameters def parameters = build?.actions.find{ it instanceof ParametersAction }?.parameters parameters.each { println "parameter ${it.name}:" println it.dump() } */ print ("VERSION is ${VERSION}") def version_value = build.buildVariabl

Read more
Related news
Comment
FACEBOOK