Is it possible to create an environment variable referring to another
existing environment variable in a pipeline definition? I use the Groovy
configuration plugin and would like to do something like this:
stage('Build') {
environmentVariables = [
IMAGE_TAG: "$GO_REVISION-$GO_PIPELINE_COUNTER"
]
...
The variables must be resolved at runtime, not ath the time of creating the
configuration. Is this possible at all? In all my attempts I only get
errors like
"No such property: GO_REVISION for class:
cd.go.contrib.plugins.configrepo.groovy.dsl.Stage"
The only workaround I see is to set environment variables directly in the
bash string before executing the actual bash commands but then this has to
be done for every bash task and I don't quite like it.
--
You received this message because you are subscribed to the Google Groups
"go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/go-cd/d25de2ad-935e-4f93-a88c-a929c94fe468n%40googlegroups.com.