Skip vote for releng-rtd from gerrit trigger 61/12861/3
authorAric Gardner <agardner@linuxfoundation.org>
Tue, 2 Oct 2018 20:49:38 +0000 (16:49 -0400)
committerAric Gardner <agardner@linuxfoundation.org>
Wed, 3 Oct 2018 19:43:28 +0000 (15:43 -0400)
There should be an easy way to set jobs coming from global jjb to be
non-voting. I would like to add the rtd job as non
voting first and then after some time switch it to voting.

Change-Id: Id96886973c180e47f79c0550f8c35749715617a3
Jira: RELENG-1294
Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
docs/jjb/lf-rtd-jobs.rst
jjb/lf-rtd-jobs.yaml

index ca0aac2..b21cee6 100644 (file)
@@ -118,6 +118,7 @@ Verify job which runs a tox build of the docs project
     :build-timeout: Timeout in minutes before aborting build. (default: 15)
     :doc-dir: Directory where tox will place built docs.
         as defined in the tox.ini (default: docs/_build/html)
+    :gerrit-skip-vote: Skip voting for this job. (default: false)
     :git-url: URL clone project from. (default: $GIT_URL/$PROJECT)
     :project-pattern: Project to trigger build against. (default: \*\*)
     :stream: Keyword representing a release code-name.
index acc2389..0f4aa8b 100644 (file)
     project-pattern: '**'
     stream: master
     submodule-recursive: true
+    gerrit-skip-vote: false
 
     gerrit_verify_triggers:
       - patchset-created-event:
                 - branch-compare-type: 'ANT'
                   branch-pattern: '**/{branch}'
               file-paths: '{obj:gerrit_trigger_file_paths}'
+          skip-vote:
+            successful: '{gerrit-skip-vote}'
+            failed: '{gerrit-skip-vote}'
+            unstable: '{gerrit-skip-vote}'
+            notbuilt: '{gerrit-skip-vote}'
 
 - job-template:
     name: '{project-name}-rtd-verify-{stream}'