Skip to content

Instantly share code, notes, and snippets.

@telagraphic
Created October 16, 2012 14:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save telagraphic/3899636 to your computer and use it in GitHub Desktop.
Save telagraphic/3899636 to your computer and use it in GitHub Desktop.
Jenkins Environment Variables
Started by user anonymous
[EnvInject] - Loading node environment variables.
Building in workspace /var/lib/jenkins/jobs/WebServiceCucumber/workspace
Checkout:workspace / /var/lib/jenkins/jobs/WebServiceCucumber/workspace - hudson.remoting.LocalChannel@6fa053d5
Using strategy: Default
Last Built Revision: Revision c68c082c3c0290916d8c0a088d5ed462184e033f (origin/HEAD, origin/master)
Fetching changes from 1 remote Git repository
Fetching upstream changes from https://github.com/nickcin/c2f-wsdl.git
Seen branch in repository origin/HEAD
Seen branch in repository origin/master
Commencing build of Revision c68c082c3c0290916d8c0a088d5ed462184e033f (origin/HEAD, origin/master)
Checking out Revision c68c082c3c0290916d8c0a088d5ed462184e033f (origin/HEAD, origin/master)
Warning : There are multiple branch changesets here
[workspace] $ /bin/sh -xel /tmp/hudson4682301210388513905.sh
+ GROUP_PATH=/usr/local/maven/bin::/usr/local/maven/bin:/home/pillar/.rvm/gems/ruby-1.9.2-p320/bin:/home/pillar/.rvm/gems/ruby-1.9.2-p320@global/bin:/home/pillar/.rvm/rubies/ruby-1.9.2-p320/bin:/home/pillar/.rvm/bin:/usr/lib64/qt-3.3/bin:/usr/local/maven/bin::/usr/local/bin:/usr/bin:/bin:home/pillar/.rvm/gems/ruby-1.9.2-p320/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/pillar/.rvm/bin:/home/pillar/bin:/home/pillar/.rvm/bin:home/pillar/.rvm/gems/ruby-1.9.2-p320/bin
+ RUBY_HOME=/home/pillar/.rvm/rubies/ruby-1.9.2-p320/bin/
+ ANT_HOME=/etc/alternatives/anthome
+ CUCUMBER_HOME=/home/pillar/.rvm/gems/ruby-1.9.2-p320/bin
+ export PATH=/sbin:/usr/sbin:/bin:/usr/bin:/etc/alternatives/anthome
+ PATH=/sbin:/usr/sbin:/bin:/usr/bin:/etc/alternatives/anthome
+ export PATH=/sbin:/usr/sbin:/bin:/usr/bin:/etc/alternatives/anthome:/home/pillar/.rvm/gems/ruby-1.9.2-p320/bin
+ PATH=/sbin:/usr/sbin:/bin:/usr/bin:/etc/alternatives/anthome:/home/pillar/.rvm/gems/ruby-1.9.2-p320/bin
+ export PATH=/sbin:/usr/sbin:/bin:/usr/bin:/etc/alternatives/anthome:/home/pillar/.rvm/gems/ruby-1.9.2-p320/bin:/home/pillar/.rvm/rubies/ruby-1.9.2-p320/bin/
+ PATH=/sbin:/usr/sbin:/bin:/usr/bin:/etc/alternatives/anthome:/home/pillar/.rvm/gems/ruby-1.9.2-p320/bin:/home/pillar/.rvm/rubies/ruby-1.9.2-p320/bin/
+ export PATH=/sbin:/usr/sbin:/bin:/usr/bin:/etc/alternatives/anthome:/home/pillar/.rvm/gems/ruby-1.9.2-p320/bin:/home/pillar/.rvm/rubies/ruby-1.9.2-p320/bin/:/usr/local/maven/bin::/usr/local/maven/bin:/home/pillar/.rvm/gems/ruby-1.9.2-p320/bin:/home/pillar/.rvm/gems/ruby-1.9.2-p320@global/bin:/home/pillar/.rvm/rubies/ruby-1.9.2-p320/bin:/home/pillar/.rvm/bin:/usr/lib64/qt-3.3/bin:/usr/local/maven/bin::/usr/local/bin:/usr/bin:/bin:home/pillar/.rvm/gems/ruby-1.9.2-p320/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/pillar/.rvm/bin:/home/pillar/bin:/home/pillar/.rvm/bin:home/pillar/.rvm/gems/ruby-1.9.2-p320/bin
+ PATH=/sbin:/usr/sbin:/bin:/usr/bin:/etc/alternatives/anthome:/home/pillar/.rvm/gems/ruby-1.9.2-p320/bin:/home/pillar/.rvm/rubies/ruby-1.9.2-p320/bin/:/usr/local/maven/bin::/usr/local/maven/bin:/home/pillar/.rvm/gems/ruby-1.9.2-p320/bin:/home/pillar/.rvm/gems/ruby-1.9.2-p320@global/bin:/home/pillar/.rvm/rubies/ruby-1.9.2-p320/bin:/home/pillar/.rvm/bin:/usr/lib64/qt-3.3/bin:/usr/local/maven/bin::/usr/local/bin:/usr/bin:/bin:home/pillar/.rvm/gems/ruby-1.9.2-p320/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/pillar/.rvm/bin:/home/pillar/bin:/home/pillar/.rvm/bin:home/pillar/.rvm/gems/ruby-1.9.2-p320/bin
+ env
BUILD_CAUSE_USERIDCAUSE=true
BUILD_URL=http://localhost:8080/job/WebServiceCucumber/66/
HUDSON_SERVER_COOKIE=ca57df047b593ace97902a842f517594
SHELL=/bin/bash
TERM=linux
BUILD_TAG=jenkins-WebServiceCucumber-66
WORKSPACE=/var/lib/jenkins/jobs/WebServiceCucumber/workspace
JOB_URL=http://localhost:8080/job/WebServiceCucumber/
USER=jenkins
LD_LIBRARY_PATH=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/server:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/../lib/amd64
NLSPATH=/usr/dt/lib/nls/msg/%L/%N.cat
GIT_COMMIT=c68c082c3c0290916d8c0a088d5ed462184e033f
JENKINS_HOME=/var/lib/jenkins
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/etc/alternatives/anthome:/home/pillar/.rvm/gems/ruby-1.9.2-p320/bin:/home/pillar/.rvm/rubies/ruby-1.9.2-p320/bin/:/usr/local/maven/bin::/usr/local/maven/bin:/home/pillar/.rvm/gems/ruby-1.9.2-p320/bin:/home/pillar/.rvm/gems/ruby-1.9.2-p320@global/bin:/home/pillar/.rvm/rubies/ruby-1.9.2-p320/bin:/home/pillar/.rvm/bin:/usr/lib64/qt-3.3/bin:/usr/local/maven/bin::/usr/local/bin:/usr/bin:/bin:home/pillar/.rvm/gems/ruby-1.9.2-p320/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/pillar/.rvm/bin:/home/pillar/bin:/home/pillar/.rvm/bin:home/pillar/.rvm/gems/ruby-1.9.2-p320/bin
RUNLEVEL=5
PWD=/var/lib/jenkins/jobs/WebServiceCucumber/workspace
LANGSH_SOURCED=1
HUDSON_URL=http://localhost:8080/
LANG=en_US.UTF-8
JOB_NAME=WebServiceCucumber
PREVLEVEL=N
previous=N
XFILESEARCHPATH=/usr/dt/app-defaults/%L/Dt
JENKINS_URL=http://localhost:8080/
BUILD_CAUSE=USERIDCAUSE
BUILD_ID=2012-10-16_14-58-39
CONSOLETYPE=vt
HOME=/var/lib/jenkins
SHLVL=4
GIT_BRANCH=origin/HEAD
JENKINS_SERVER_COOKIE=ca57df047b593ace97902a842f517594
EXECUTOR_NUMBER=1
NODE_LABELS=master
UPSTART_EVENTS=runlevel
LOGNAME=jenkins
HUDSON_HOME=/var/lib/jenkins
GEM_PATH=file:/var/lib/jenkins/plugins/ruby-runtime/WEB-INF/lib/stapler-jruby-1.177.jar!/gem
NODE_NAME=master
BUILD_NUMBER=66
UPSTART_JOB=rc
HUDSON_COOKIE=23526ab9-fd3f-44e9-a39f-1dd93231c7f2
_=/bin/env
+ which cucumber
/home/pillar/.rvm/gems/ruby-1.9.2-p320/bin/cucumber
+ whoami
jenkins
+ pwd
/var/lib/jenkins/jobs/WebServiceCucumber/workspace
+ cucumber
/home/pillar/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find cucumber (>= 0) amongst [minitest-1.6.0, rake-0.8.7, rdoc-2.5.8] (Gem::LoadError)
from /home/pillar/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec'
from /home/pillar/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/site_ruby/1.9.1/rubygems.rb:1231:in `gem'
from /home/pillar/.rvm/gems/ruby-1.9.2-p320/bin/cucumber:18:in `<main>'
from /home/pillar/.rvm/gems/ruby-1.9.2-p320/bin/ruby_noexec_wrapper:14:in `eval'
from /home/pillar/.rvm/gems/ruby-1.9.2-p320/bin/ruby_noexec_wrapper:14:in `<main>'
Build step 'Execute shell' marked build as failure
Finished: FAILURE
#!/bin/sh -xel
env
which cucumber
whoami
pwd
cucumber
ANT_HOME="/etc/alternatives/anthome"
CUCUMBER_HOME="home/pillar/.rvm/gems/ruby-1.9.2-p320/bin"
export PATH=$NEW:$PATH:$CUCUMBER_HOME
pathmunge () {
case ":${PATH}:" in
*:"$1":*)
;;
*)
if [ "$2" = "after" ] ; then
PATH=$PATH:$1
else
PATH=$1:$PATH
fi
esac
}
if [ -x /usr/bin/id ]; then
if [ -z "$EUID" ]; then
# ksh workaround
EUID=`id -u`
UID=`id -ru`
fi
USER="`id -un`"
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"
fi
# Path manipulation
if [ "$EUID" = "0" ]; then
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/sbin
else
pathmunge /usr/local/sbin after
pathmunge /usr/sbin after
pathmunge /sbin after
fi
HOSTNAME=`/bin/hostname 2>/dev/null`
HISTSIZE=1000
if [ "$HISTCONTROL" = "ignorespace" ] ; then
export HISTCONTROL=ignoreboth
else
export HISTCONTROL=ignoredups
fi
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE HISTCONTROL
ANT_HOME="/etc/alternatives/anthome"
CUCUMBER_HOME="home/pillar/.rvm/gems/ruby-1.9.2-p320/bin"
export PATH=$NEW:$PATH:$CUCUMBER_HOME
pathmunge () {
case ":${PATH}:" in
*:"$1":*)
;;
*)
if [ "$2" = "after" ] ; then
PATH=$PATH:$1
else
PATH=$1:$PATH
fi
esac
}
if [ -x /usr/bin/id ]; then
if [ -z "$EUID" ]; then
# ksh workaround
EUID=`id -u`
UID=`id -ru`
fi
USER="`id -un`"
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"
fi
# Path manipulation
if [ "$EUID" = "0" ]; then
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/sbin
else
pathmunge /usr/local/sbin after
pathmunge /usr/sbin after
pathmunge /sbin after
fi
HOSTNAME=`/bin/hostname 2>/dev/null`
HISTSIZE=1000
if [ "$HISTCONTROL" = "ignorespace" ] ; then
export HISTCONTROL=ignoreboth
else
export HISTCONTROL=ignoredups
fi
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE HISTCONTROL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment