-
Improvement
-
Resolution: Duplicate
-
Major
-
None
-
Platform: All, OS: All
Currently, via a BuildWrapper, I can add additional env variables to a running
build. However, those variables do not persist past the execution of the actual
core build steps. This means that they are not available to post build steps
(e.g. Publishers).
In my context, I want to be able to set a custom version string that is used
both by the ant builder when generating my build artifact(i.e. version string in
the jar manifest) and refer to that same version string in the svn tag publisher
so it is used as the svn tag for the build.
I'd very much like to have support for setting custom env variables that are
visible throughout the build execution.
- duplicates
-
JENKINS-7075 Enhance buildEnvironments so that global- and build-wrapper env variables are made available to post-build actions
-
- Resolved
-
I think you can use $env
{'ABC'}syntax in svn-tag settings to reference the var, once Hudson core makes it available.. so closing this issue against svn-tag plugin in favor of one recently filed against core.