-
Bug
-
Resolution: Not A Defect
-
Minor
-
None
-
2.73.2
latest pipeline plugin
So for example this piece of library code https://github.com/fabric8io/fabric8-pipeline-library/blob/master/vars/gitTag.groovy
the closure block's config is considered script, which makes me sad :|
especially when I want this degree of configuration.
Error message
Expected a step @ line 35, column 13.
releaseVersion = "${VERSION}"
see the pipeline below:
pipeline { agent { label 'linux' } environment { VERSION = "0.2.${BUILD_NUMBER}" } stages { stage('Build Release') { when { branch 'master' } steps { sh "build release" gitTag { releaseVersion = "${VERSION}" } } } } }