Should be index 2, not index 3
authorKevin Klues <klueska@cs.berkeley.edu>
Thu, 8 May 2014 03:58:32 +0000 (20:58 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 17 Dec 2015 19:54:39 +0000 (14:54 -0500)
Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
tools/jenkins/launcher.sh

index 5d5c07f..5275734 100755 (executable)
@@ -33,7 +33,7 @@ readonly BUSYBOX_CONF_FILE=tools/patches/busybox/busybox-1.17.3-config
 ################################################################################
 function last_stable_build() {
        curl -s localhost:8080/job/$JOB_NAME/lastStableBuild/api/json?tree=actions%5bbuildsByBranchName%5brevision%5bSHA1%5d%5d%5d | \
-               python -c 'import sys, json; print json.load(sys.stdin)["actions"][3]["buildsByBranchName"]["'$GIT_BRANCH'"]["revision"]["SHA1"]'
+               python -c 'import sys, json; print json.load(sys.stdin)["actions"][2]["buildsByBranchName"]["'$GIT_BRANCH'"]["revision"]["SHA1"]'
 }
 
 ################################################################################