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