Add GERRIT_REFSPEC to 'project-parameter' Macro 91/50791/2
authorTrevor Bramwell <tbramwell@linuxfoundation.org>
Thu, 18 Jan 2018 20:11:00 +0000 (12:11 -0800)
committerTrevor Bramwell <tbramwell@linuxfoundation.org>
Tue, 23 Jan 2018 18:21:37 +0000 (10:21 -0800)
GERRIT_REFSPEC is always passed by the gerrit-trigger plugin when a job
is triggered by Gerrit. Because it is not explicily defined, there is no
way to manually trigger jobs, as the git clone looks up the list of refs
by GERRIT_REFSPEC.

Being able to manually trigger jobs (with node parameters so they can be
restricted) is very helpful in debugging CI issues.

Change-Id: I8a1d9ea380902fc95f30482e5acb616347709ab1
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
jjb/apex/apex-project-jobs.yml
jjb/ci_gate_security/opnfv-ci-gate-security.yml
jjb/global/releng-macros.yml
jjb/qtip/qtip-verify-jobs.yml

index b12b101..5807286 100644 (file)
           branch: '{branch}'
       - apex-parameter:
           gs-pathname: '{gs-pathname}'
-      - string:
-          name: GERRIT_REFSPEC
-          default: 'refs/heads/{branch}'
-          description: "JJB configured GERRIT_REFSPEC parameter"
 
     scm:
       - git-scm-gerrit
index d54aebe..56aee17 100644 (file)
       - project-parameter:
           project: '{repo}'
           branch: '{branch}'
-      - string:
-          name: GERRIT_REFSPEC
-          default: 'refs/heads/{stream}'
-          description: "Default Gerrit ref git HEAD should point to"
 
     scm:
       - git-scm-gerrit
index 330584e..c6a65ca 100644 (file)
           name: GERRIT_BRANCH
           default: '{branch}'
           description: "JJB configured GERRIT_BRANCH parameter (deprecated)"
+      - string:
+          name: GERRIT_REFSPEC
+          default: 'refs/heads/{branch}'
+          description: "Default refspec needed for manually triggering."
 
 - property:
     name: logrotate-default
index 783c92b..8698fa0 100644 (file)
           name: GS_URL
           default: '$GS_BASE{gs-pathname}'
           description: "Directory where the build artifact will be located upon the completion of the build."
-      - string:
-          name: GERRIT_REFSPEC
-          default: 'refs/heads/{branch}'
-          description: "JJB configured GERRIT_REFSPEC parameter"
 
     scm:
       - git-scm