Subversion plug-in should set this environment variables when job is executed. We reverted back the plug-in version to 1.37 it worked as expected. Following the configuration I wrote the output was similar to this:

[workspace] $ /bin/sh -xe /tmp/hudson417259567168419629.sh
+ env
JENKINS_HOME=/home/jenkins
SVN_URL=svn://repo/projects/sample-project
USER=jenkins
MAIL=/var/mail/jenkins
BUILD_CAUSE_USERIDCAUSE=true
LD_LIBRARY_PATH=/usr/lib/j2re1.6-sun/lib/amd64/server:/usr/lib/j2re1.6-sun/lib/amd64:/usr/lib/j2re1.6-sun/../lib/amd64
HUDSON_URL=http://xxx/
NODE_LABELS=master
SHLVL=1
HOME=/home/jenkins
BUILD_URL=http://xxx:8080/job/bug-testing-job/1/
XDG_SESSION_COOKIE=1b7ec68ec015972008ea18b5502cfd37-1353159776.395303-1422605035
HUDSON_COOKIE=98bdb63c-c6ae-489b-aa47-418fbd331033
JENKINS_SERVER_COOKIE=82cbdf46918417a5e048637649ff7175
WORKSPACE=/home/jenkins/jobs/bug-testing-job/workspace
NODE_NAME=master
LOGNAME=jenkins
_=/usr/bin/daemon
BUILD_CAUSE=USERIDCAUSE
EXECUTOR_NUMBER=1
OPENSSL_CONF=/etc/ssl/openssl.cnf
TERM=linux
HUDSON_HOME=/home/jenkins
PATH=/usr/lib/jvm/jdk1.6.0_33/bin:/usr/local/bin:/usr/bin:/bin
BUILD_ID=2012-11-26_15-54-38
BUILD_TAG=jenkins-bug-testing-job-1
LANG=en_US.UTF-8
JENKINS_URL=http://xxx:8080/
JOB_URL=http://xxx:8080/job/bug-testing-job/
BUILD_NUMBER=1
SHELL=/bin/bash
XFILESEARCHPATH=/usr/dt/app-defaults/%L/Dt
HUDSON_SERVER_COOKIE=82cbdf46918417a5e048637649ff7175
SVN_REVISION=19370
NLSPATH=/usr/dt/lib/nls/msg/%L/%N.cat
JOB_NAME=bug-testing-job
PWD=/home/jenkins/jobs/bug-testing-job/workspace
JAVA_HOME=/usr/lib/jvm/jdk1.6.0_33
Finished: SUCCESS

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to