Hi, I have a build job with the following pipeline, which works just fine:
@Library('isccr-addons')_ pipeline { agent any stages { stage ('init') { steps { isccrExec "${ISCCR_ADDONS_CONFIG}", "${WORKSPACE} } } } The "isccrExec" is a step, that's specified in my shared library. I expect to have quite a lot of these build jobs. So, I am thinking about moving as much code as possible to the shared library. I have tried to create a new step "isccrPipeline" with the following definition: pipeline { agent any stages { stage ('init') { steps { isccrExec "${ISCCR_ADDONS_CONFIG}", "${WORKSPACE} } } } Basically, that's just the same. Now I am trying to use that step with this new build pipeline: @Library('isccr-addons')_ isccrPipeline "${ISCCR_ADDONS_CONFIG}", "${WORKSPACE} Unfortunately, that fails with this error message: groovy.lang.MissingPropertyException: No such property: WORKSPACE for class: groovy.lang.Binding Any ideas, what's wrong? Thanks, Jochen -- 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/09e51da7-e421-44f7-b1c9-d169f9c19fc2n%40googlegroups.com.