From 85275b36b0b768e9d6b69c1852b6807c471d664e Mon Sep 17 00:00:00 2001 From: wutianwei Date: Tue, 12 Mar 2019 11:56:56 +0800 Subject: [PATCH] [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 --- jjb/akraino-templates/akraino-jjb-templates.yaml | 3 ++- jjb/eliot/eliot.yaml | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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 -- 2.16.6