-
Bug
-
Resolution: Cannot Reproduce
-
Critical
-
None
Create a pull request with comment as:
test this please
p:country=USA
p:env=dev1
Configure the Jenkins job to trigger the build using the stash-pullrequest-builder-plugin.
Print all the environment variables set for jenkins job using "env" command.
Expected:
Was expecting two env vars with values set to USA and dev1.
Actual:
No env vars are available in Jenkins job with USA
Lets list all the env vars
+ env
BUILD_URL=http://ci24.us-west-2.aws.zeta.tools:8180/jenkins/job/zan_full_regression_PullRequest/13/
HOSTNAME=ci24.us-west-2.aws.zeta.tools
HUDSON_SERVER_COOKIE=98ea9add84ff62df
SHELL=/bin/bash
TERM=xterm-256color
CATALINA_HOME=/data/builder/tomcat-jenkins
HISTSIZE=5000
BUILD_TAG=jenkins-zan_full_regression_PullRequest-13
GIT_PREVIOUS_COMMIT=0eae8f6e334fd1114c50443b084311c420298f6d
ANT_HOME=/data/builder/ant
WORKSPACE=/data/builder/jenkins/workspace/zan_full_regression_PullRequest
Release=180
pullRequestId=355
JOB_URL=http://ci24.us-west-2.aws.zeta.tools:8180/jenkins/job/zan_full_regression_PullRequest/
USER=root
LS_COLORS=rs=0:no=00:fi=01:di=01;34:ln=01;32:mh=00:pi=40;33:so=01;36:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:.cmd=01;32:.exe=01;32:.com=01;32:.btm=01;32:.bat=01;32:.sh=01;32:.csh=01;32:.tar=01;31:.tgz=01;31:.arj=01;31:.taz=01;31:.lzh=01;31:.lzma=01;31:.tlz=01;31:.txz=01;31:.zip=01;31:.z=01;31:.Z=01;31:.dz=01;31:.gz=01;31:.lz=01;31:.xz=01;31:.bz2=01;31:.tbz=01;31:.tbz2=01;31:.bz=01;31:.tz=01;31:.deb=01;31:.rpm=01;31:.jar=01;31:.rar=01;31:.ace=01;31:.zoo=01;31:.cpio=01;31:.7z=01;31:.rz=01;31:.jpg=01;35:.jpeg=01;35:.gif=01;35:.bmp=01;35:.pbm=01;35:.pgm=01;35:.ppm=01;35:.tga=01;35:.xbm=01;35:.xpm=01;35:.tif=01;35:.tiff=01;35:.png=01;35:.svg=01;35:.svgz=01;35:.mng=01;35:.pcx=01;35:.mov=01;35:.mpg=01;35:.mpeg=01;35:.m2v=01;35:.mkv=01;35:.ogm=01;35:.mp4=01;35:.m4v=01;35:.mp4v=01;35:.vob=01;35:.qt=01;35:.nuv=01;35:.wmv=01;35:.asf=01;35:.rm=01;35:.rmvb=01;35:.flc=01;35:.avi=01;35:.fli=01;35:.flv=01;35:.gl=01;35:.dl=01;35:.xcf=01;35:.xwd=01;35:.yuv=01;35:.cgm=01;35:.emf=01;35:.axv=01;35:.anx=01;35:.ogv=01;35:.ogx=01;35:.aac=01;36:.au=01;36:.flac=01;36:.mid=01;36:.midi=01;36:.mka=01;36:.mp3=01;36:.mpc=01;36:.ogg=01;36:.ra=01;36:.wav=01;36:.axa=01;36:.oga=01;36:.spx=01;36:.xspf=01;36:.pl=00;33:.PL=00;33:.pm=00;33:.tt=00;33:.yml=00;33:.sql=00;33:.html=00;33:.css=00;33:.js=00;33:.rb=00;33:.c=00;33:.h=00;33:.json=00;33:
LD_LIBRARY_PATH=/data/jdk1.6.0_43/jre/lib/amd64/server:/data/jdk1.6.0_43/jre/lib/amd64:/data/jdk1.6.0_43/jre/../lib/amd64
pullRequestTitle=Test Pull Request
SUDO_USER=xlin
SUDO_UID=10034
sourceCommitHash=4b98a9eb1717d8d9a8bcae3c9f10bfcf9c90542b
destinationRepositoryName=zanalytics
USERNAME=root
BUILD_CAUSE_STASHCAUSE=true
NLSPATH=/usr/dt/lib/nls/msg/%L/%N.cat
GIT_COMMIT=0eae8f6e334fd1114c50443b084311c420298f6d
JENKINS_HOME=/data/builder/jenkins
MAVEN_HOME=/usr/share/apache-maven
PATH=/data/jdk1.8.0_45/bin:.:/data/builder/jdk/bin:/data/builder/ant/bin:/usr/local/git/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/chef/bin:/opt/chef/bin:/data/bin:/data/builder/dse-4.6.0/bin:/data/builder/node-v0.12.2-linux-x64/bin:/data/builder/apache-zookeeper/data/zookeeper-3.4.6/bin
MAIL=/var/spool/mail/root
destinationRepositoryOwner=ZAN
PWD=/data/builder/jenkins/workspace/zan_full_regression_PullRequest
JAVA_HOME=/data/jdk1.8.0_45
AWS_SECRET_ACCESS_KEY=2zTA9s4pqgoQKAUZy/ds8NrOMLAQGRZtl2XIsYkD
HUDSON_URL=http://ci24.us-west-2.aws.zeta.tools:8180/jenkins/
LANG=en_US.UTF-8
JOB_NAME=zan_full_regression_PullRequest
sourceBranch=subbranchTofake2zan
BUILD_DISPLAY_NAME=#13
XFILESEARCHPATH=/usr/dt/app-defaults/%L/Dt
CATALINA_OPTS=-DHUDSON_HOME=/data/builder/jenkins -Xmx2048m -XX:PermSize=512m -XX:MaxPermSize=512m
BUILD_CAUSE=STASHCAUSE
BUILD_ID=13
JENKINS_URL=http://ci24.us-west-2.aws.zeta.tools:8180/jenkins/
HISTCONTROL=ignoreboth
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
targetBranch=bugfix/fake2zan
AWS_ACCESS_KEY_ID=AKIAJU76ADOANYILAU5Q
SUDO_COMMAND=/bin/bash
HOME=/data
SHLVL=4
M2_HOME=/usr/share/apache-maven
GRADLE_OPTS=-Xmx2048m -XX:MaxPermSize=512m
GIT_BRANCH=origin/master
JENKINS_SERVER_COOKIE=98ea9add84ff62df
EXECUTOR_NUMBER=0
GIT_URL=https://intranet.zuora.com/stash/scm/zra/database.git
NODE_LABELS=master
LOGNAME=root
CVS_RSH=ssh
repositoryName=zanalytics
HUDSON_HOME=/data/builder/jenkins
LESSOPEN=|/usr/bin/lesspipe.sh %s
BUILD_NUMBER=13
HUDSON_COOKIE=d47d20a7-3aba-49f7-a682-b26de6782537
SUDO_GID=10034
projectCode=ZAN
G_BROKEN_FILENAMES=1
_=/bin/env