The value is parsed as an environment variable when initiated by a jenkins job.
See
https://wiki.jenkins-ci.org/display/...nmentVariables
The job build command:
Code:
VisBuildcmd.exe "BUILD_URL=%BUILD_URL%" /mta /b NUnitTest.bld
When expanded to on the test machine, it becomes:
Code:
VisBuildcmd.exe "BUILD_URL=http://jenkins/job/Test%20New%20NUnit%20Test%20Script/lastBuild" /mta /b NUnitTest.bld
Some of the jobs name have spaces, so these spaces are escaped to become %20 in the BUILD_URL env var.
Code:
Eg: http://jenkins/job/TestNewNUnitTestScript/ - OK
Eg: http://jenkins/job/Test New NUnit Test Script/ - Still OK, but will be escaped to:
http://jenkins/job/Test%20New%20NUnit%20Test%20Script/ - Not OK
I do not want to replace spaces with underscores in the job name. Hence the problem.