Correct verify job branch selection 67/467/1
authorEric Ball <eball@linuxfoundation.org>
Wed, 13 Mar 2019 16:44:42 +0000 (09:44 -0700)
committerEric Ball <eball@linuxfoundation.org>
Wed, 13 Mar 2019 16:44:42 +0000 (09:44 -0700)
The verify job was not picking up the correct branch, as it had been
modeled after the merge jobs, which are single-branch. Also made the
verify jobs more generic, as they had been designed specific to the
eliot project.

Change-Id: I3bacc22bffb89c4b7378c1ada7bd0af988c75a15
Signed-off-by: Eric Ball <eball@linuxfoundation.org>
global-jjb
jjb/akraino-templates/akraino-jjb-templates.yaml
jjb/eliot/eliot.yaml
jjb/shell/verify.sh [moved from jjb/shell/eliot-verify.sh with 95% similarity]

index 8b56734..4ada8fb 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 8b56734eada742094399d6e52cbc2ddef7b39b2c
+Subproject commit 4ada8fbad994cdcb78c547742f4fe97456949193
index 33035f1..4a6f391 100644 (file)
       - lf-infra-parameters:
           project: '{project}'
           stream: '{stream}'
-          refspec: '{refspec}'
           branch: '{branch}'
           lftools-version: '{lftools-version}'
 
       - lf-infra-gerrit-scm:
           jenkins-ssh-credential: '{jenkins-ssh-credential}'
           git-url: '{git-url}/{project}.git'
-          refspec: '{refspec}'
+          refspec: 'refs/heads/{branch}'
           branch: '{branch}'
           submodule-recursive: '{submodule-recursive}'
           submodule-timeout: '{submodule-timeout}'
                 exclude-no-code-change: 'false'
             - change-merged-event
             - draft-published-event
-            - comment-added-contains-event:
-                comment-contains-value: remerge$
             - comment-added-contains-event:
                 comment-contains-value: 'recheck'
             - comment-added-contains-event:
                   pattern: 'docs/**'
           readable-message: true
 
-
-
     builders:
       - shell: !include-raw-escape:
-          - ../shell/eliot-verify.sh
+          - ../shell/verify.sh
 
     publishers:
       - lf-infra-publish
index c762473..632fe8b 100644 (file)
@@ -3,9 +3,9 @@
     name: eliot-project
     project-name: eliot
     project: eliot
-    stream: master
-    refspec: '$GERRIT_REFSPEC'
-    branch: '$GERRIT_BRANCH'
+    stream:
+      - master:
+          branch: master
     build-node: centos7-builder-2c-1g
     jobs:
       - akraino-project-stream-verify
similarity index 95%
rename from jjb/shell/eliot-verify.sh
rename to jjb/shell/verify.sh
index 1c80a16..eff7d25 100644 (file)
@@ -17,6 +17,6 @@
 set -o errexit
 set -o pipefail
 
-echo "Running eliot verification..."
+echo "Running verify.sh..."
 
 /bin/bash $WORKSPACE/verify.sh