-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
Jenkins LTS 1.625.2
OS - CentOS 7.1
Subversion Plugin - 2.5.4
EnvInject Plugin - 1.92.1
Pre SCM BuildStep Plugin - 0.3
If I add a Build Step "Inject environment variables" in the section which appears after clicking "Run buildstep before SCM runs" in order to inject environment variable USE_VER then "Subversion plugin" will not set SVN_* environment variables.
Job configuration config.xml-bad
Console output consoleText-bad
This works fine also if instead of "Inject environment variables" I use "Execute system Groovy script" Build Step from Groovy Plugin
import hudson.model.ParametersAction
import hudson.model.StringParameterValue
def paSvnUrl = new ParametersAction([
new StringParameterValue("USE_VER", "1712454")
])
build.addAction(paSvnUrl)
See config.xml-good
See consoleText-good
Another way to make it work is to set a node environment variable with the same name and any numeric value. In this case the value set for node environment variable is ignored. On the other hand if node environment variable is set to a non-numeric value then the problem still happens.
This is not a bug in Subversion Plugin - see https://issues.jenkins-ci.org/browse/JENKINS-31520