Merge "INFO.yaml check vote for global-jjb"
authorAndrew Grimberg <agrimberg@linuxfoundation.org>
Wed, 3 Apr 2019 16:26:30 +0000 (16:26 +0000)
committerGerrit Code Review <gerrit@linuxfoundation.org>
Wed, 3 Apr 2019 16:26:30 +0000 (16:26 +0000)
1  2 
docs/jjb/lf-macros.rst
jjb/lf-macros.yaml

diff --combined docs/jjb/lf-macros.rst
@@@ -5,14 -5,6 +5,14 @@@ Global Macro
  Builders
  ========
  
 +comment-to-gerrit
 +-----------------
 +
 +This macro will post a comment to the gerrit patchset if the build
 +creates a file named gerrit_comment.txt
 +To use this macro add it to the list of builders.
 +
 +
  lf-fetch-dependent-patches
  --------------------------
  
@@@ -242,6 -234,11 +242,11 @@@ lf-rtd-verif
  
  ReadTheDocs verify script.
  
+ check-info-votes
+ ----------------
+ Calls shell script to validate votes on a change to an INFO.yaml
  lf-sigul-sign-dir
  -----------------
  
diff --combined jjb/lf-macros.yaml
@@@ -3,14 -3,6 +3,14 @@@
  # BUILDERS #
  ############
  
 +# To take advantage of this macro, have your build write
 +# out the file 'gerrit_comment.txt' with information to post
 +# back to gerrit and include this macro in the list of builders.
 +- builder:
 +    name: comment-to-gerrit
 +    builders:
 +      - shell: !include-raw ../shell/comment-to-gerrit.sh
 +
  - builder:
      name: lf-fetch-dependent-patches
      builders:
        - shell: !include-raw-escape: ../shell/tox-install.sh
        - shell: !include-raw-escape: ../shell/rtd-verify.sh
  
+ - builder:
+     name: check-info-votes
+     builders:
+       - inject:
+           properties-content: JENKINS_SSH_CREDENTIAL={jenkins-ssh-credential}
+       - shell: !include-raw-escape: ../shell/check-info-votes.sh
  - builder:
      name: lf-sigul-sign-dir
      # Requires that Jenkins be configured with SIGUL_BRIDGE_IP as a global