note: Step#3 above should say echo ${GIT_BRANCH}
Here is the build log. As you can see, it knows the GIT_BRANCH at one point, (at the "commencing build" line),
then loses that information in the build script, when it gets echoed.
Started by user rmorgenstein
Building remotely on volt4c in workspace /var/voltdb/jenkins/workspace/xtest-jenkins
Deleting project workspace... done
Checkout:xtest-jenkins / /var/voltdb/jenkins/workspace/xtest-jenkins - hudson.remoting.Channel@11c0f73a:volt4c
Using strategy: Inverse
Last Built Revision: Revision d4da8cf9aa3456030142fd56034d87d2f8d22de7 (origin/voltdb-0.6)
Checkout:voltdb / /var/voltdb/jenkins/workspace/xtest-jenkins/voltdb - hudson.remoting.LocalChannel@630f83c9
Cloning the remote Git repository
Cloning repository origin
Fetching upstream changes from git@github.com:VoltDB/voltdb.git
Cleaning workspace
Seen branch in repository origin/ElClient
Seen branch in repository origin/HEAD
Seen branch in repository origin/build-tests
...
Seen branch in repository origin/voltcore-integration
Seen branch in repository origin/voltdb-0.6
Seen branch in repository origin/voltdb-0.9
Seen branch in repository origin/voltdb-1.0
...
Commencing build of Revision 5af56f1a105129ae24895c3e6434294cf736ebbe (origin/voltdb-0.9)
Checking out Revision 5af56f1a105129ae24895c3e6434294cf736ebbe (origin/voltdb-0.9)
Cleaning workspace
No change to record in branch origin/voltdb-0.9
[xtest-jenkins] $ /bin/sh -xe /tmp/hudson7808160474733240525.sh
+ echo 'GIT_BRANCH = origin/master'
GIT_BRANCH = origin/master
+ echo 'GIT_COMMIT = 5af56f1a105129ae24895c3e6434294cf736ebbe'
GIT_COMMIT = 5af56f1a105129ae24895c3e6434294cf736ebbe
+ echo 'BUILD_TAG = jenkins-xtest-jenkins-8'
BUILD_TAG = jenkins-xtest-jenkins-8
Finished: SUCCESS
note: Step#3 above should say echo ${GIT_BRANCH}
Here is the build log. As you can see, it knows the GIT_BRANCH at one point, (at the "commencing build" line),
then loses that information in the build script, when it gets echoed.
Started by user rmorgenstein
Building remotely on volt4c in workspace /var/voltdb/jenkins/workspace/xtest-jenkins
Deleting project workspace... done
Checkout:xtest-jenkins / /var/voltdb/jenkins/workspace/xtest-jenkins - hudson.remoting.Channel@11c0f73a:volt4c
Using strategy: Inverse
Last Built Revision: Revision d4da8cf9aa3456030142fd56034d87d2f8d22de7 (origin/voltdb-0.6)
Checkout:voltdb / /var/voltdb/jenkins/workspace/xtest-jenkins/voltdb - hudson.remoting.LocalChannel@630f83c9
Cloning the remote Git repository
Cloning repository origin
Fetching upstream changes from git@github.com:VoltDB/voltdb.git
Cleaning workspace
Seen branch in repository origin/ElClient
Seen branch in repository origin/HEAD
Seen branch in repository origin/build-tests
...
Seen branch in repository origin/voltcore-integration
Seen branch in repository origin/voltdb-0.6
Seen branch in repository origin/voltdb-0.9
Seen branch in repository origin/voltdb-1.0
...
Commencing build of Revision 5af56f1a105129ae24895c3e6434294cf736ebbe (origin/voltdb-0.9)
Checking out Revision 5af56f1a105129ae24895c3e6434294cf736ebbe (origin/voltdb-0.9)
Cleaning workspace
No change to record in branch origin/voltdb-0.9
[xtest-jenkins] $ /bin/sh -xe /tmp/hudson7808160474733240525.sh
+ echo 'GIT_BRANCH = origin/master'
GIT_BRANCH = origin/master
+ echo 'GIT_COMMIT = 5af56f1a105129ae24895c3e6434294cf736ebbe'
GIT_COMMIT = 5af56f1a105129ae24895c3e6434294cf736ebbe
+ echo 'BUILD_TAG = jenkins-xtest-jenkins-8'
BUILD_TAG = jenkins-xtest-jenkins-8
Finished: SUCCESS