fix verify cann't fetch correct refs 99/499/1
authorwutianwei <wutianwei1@huawei.com>
Thu, 21 Mar 2019 03:22:48 +0000 (11:22 +0800)
committerwutianwei <wutianwei1@huawei.com>
Thu, 21 Mar 2019 03:34:40 +0000 (11:34 +0800)
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 <wutianwei1@huawei.com>
jjb/akraino-templates/akraino-jjb-templates.yaml

index 4a6f391..7514ff4 100644 (file)
       - 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