fix dovetail branch issue 37/36837/1
authorMatthewLi <matthew.lijun@huawei.com>
Mon, 3 Jul 2017 01:55:01 +0000 (21:55 -0400)
committerMatthewLi <matthew.lijun@huawei.com>
Mon, 3 Jul 2017 01:55:01 +0000 (21:55 -0400)
error logs

https://build.opnfv.org/ci/view/dovetail/job/dovetail-fuel-baremetal-proposed_tests-danube/43/console

Change-Id: I0634041a0679fa7f3e6a4e6c627b3205a3b0372d
Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
jjb/dovetail/dovetail-ci-jobs.yml
jjb/dovetail/dovetail-run.sh

index 9fdce31..6bcaea2 100644 (file)
             name: DOVETAIL_REPO_DIR
             default: "/home/opnfv/dovetail"
             description: "Directory where the dovetail repository is cloned"
+        - string:
+            name: SUT_BRANCH
+            default: '{branch}'
+            description: "SUT branch"
 
     scm:
         - git-scm
index d423e9d..85bc54d 100755 (executable)
@@ -52,7 +52,12 @@ releng_repo=${WORKSPACE}/releng
 git clone https://gerrit.opnfv.org/gerrit/releng ${releng_repo} >/dev/null
 
 if [[ ${INSTALLER_TYPE} != 'joid' ]]; then
+    echo "SUT branch is $SUT_BRANCH"
+    echo "dovetail branch is $BRANCH"
+    BRANCH_BACKUP=$BRANCH
+    export BRANCH=$SUT_BRANCH
     ${releng_repo}/utils/fetch_os_creds.sh -d ${OPENRC} -i ${INSTALLER_TYPE} -a ${INSTALLER_IP} >${redirect}
+    export BRANCH=$BRANCH_BACKUP
 fi
 
 if [[ -f $OPENRC ]]; then