From: wutianwei Date: Thu, 21 Mar 2019 03:22:48 +0000 (+0800) Subject: fix verify cann't fetch correct refs X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F99%2F499%2F1;p=ci-management.git fix verify cann't fetch correct refs When trigger the verify job, it cannot fetch the correct. It fetch the refs/heads/master instead of my changes. Change-Id: I6ec4c3262b48d13e39620f83b828df7d612f6044 Signed-off-by: wutianwei --- diff --git a/jjb/akraino-templates/akraino-jjb-templates.yaml b/jjb/akraino-templates/akraino-jjb-templates.yaml index 4a6f391..7514ff4 100644 --- a/jjb/akraino-templates/akraino-jjb-templates.yaml +++ b/jjb/akraino-templates/akraino-jjb-templates.yaml @@ -299,8 +299,8 @@ - lf-infra-gerrit-scm: jenkins-ssh-credential: '{jenkins-ssh-credential}' git-url: '{git-url}/{project}.git' - refspec: 'refs/heads/{branch}' - branch: '{branch}' + refspec: '$GERRIT_REFSPEC' + branch: '$GERRIT_BRANCH' submodule-recursive: '{submodule-recursive}' submodule-timeout: '{submodule-timeout}' choosing-strategy: default