[ELIOT] fix the git branch and refspec 61/461/2
authorwutianwei <wutianwei1@huawei.com>
Tue, 12 Mar 2019 03:56:56 +0000 (11:56 +0800)
committerwutianwei <wutianwei1@huawei.com>
Tue, 12 Mar 2019 12:33:26 +0000 (20:33 +0800)
Change branch to $GERRIT_BRANCH and refspec to $GERRIT_REFSPEC,
otherwise it always fetchs the master instead of my change

Change-Id: Id25e7e5edced5ed658df3ea655590604ce71e19d
Signed-off-by: wutianwei <wutianwei1@huawei.com>
jjb/akraino-templates/akraino-jjb-templates.yaml
jjb/eliot/eliot.yaml

index 82cf085..33035f1 100644 (file)
     parameters:
       - lf-infra-parameters:
           project: '{project}'
     parameters:
       - lf-infra-parameters:
           project: '{project}'
-          branch: '{branch}'
           stream: '{stream}'
           stream: '{stream}'
+          refspec: '{refspec}'
+          branch: '{branch}'
           lftools-version: '{lftools-version}'
 
       - string:
           lftools-version: '{lftools-version}'
 
       - string:
index 8c144a7..c762473 100644 (file)
@@ -4,8 +4,8 @@
     project-name: eliot
     project: eliot
     stream: master
     project-name: eliot
     project: eliot
     stream: master
-    branch: master
-    refspec: refs/heads/master
+    refspec: '$GERRIT_REFSPEC'
+    branch: '$GERRIT_BRANCH'
     build-node: centos7-builder-2c-1g
     jobs:
       - akraino-project-stream-verify
     build-node: centos7-builder-2c-1g
     jobs:
       - akraino-project-stream-verify