From: wutianwei Date: Tue, 12 Mar 2019 03:56:56 +0000 (+0800) Subject: [ELIOT] fix the git branch and refspec X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=commitdiff_plain;h=85275b36b0b768e9d6b69c1852b6807c471d664e;p=ci-management.git [ELIOT] fix the git branch and refspec 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 --- diff --git a/jjb/akraino-templates/akraino-jjb-templates.yaml b/jjb/akraino-templates/akraino-jjb-templates.yaml index 82cf085..33035f1 100644 --- a/jjb/akraino-templates/akraino-jjb-templates.yaml +++ b/jjb/akraino-templates/akraino-jjb-templates.yaml @@ -281,8 +281,9 @@ parameters: - lf-infra-parameters: project: '{project}' - branch: '{branch}' stream: '{stream}' + refspec: '{refspec}' + branch: '{branch}' lftools-version: '{lftools-version}' - string: diff --git a/jjb/eliot/eliot.yaml b/jjb/eliot/eliot.yaml index 8c144a7..c762473 100644 --- a/jjb/eliot/eliot.yaml +++ b/jjb/eliot/eliot.yaml @@ -4,8 +4,8 @@ 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