gerrit-tox-verify: Allow skip-vote configuration 56/15556/3
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Wed, 8 May 2019 14:54:00 +0000 (16:54 +0200)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Mon, 13 May 2019 15:25:23 +0000 (15:25 +0000)
Add a new parameter controlling whether the Jenkins Gerrit Trigger
plugin should vote depending on the build outcome.

Change-Id: I0197b2df19e303a813df91e4c4e6120cc79456fc
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
jjb/lf-python-jobs.yaml
releasenotes/notes/gerrit-tox-verify-skip-vote-55d4852072f14fa1.yaml [new file with mode: 0644]

index 8240845..61bb5d2 100644 (file)
     # Default parameters #
     ######################
 
+    gerrit-skip-vote: false
     gerrit_verify_triggers:
       - patchset-created-event:
           exclude-drafts: true
                 - 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:
     # Python projects typically use tox to run testing.
diff --git a/releasenotes/notes/gerrit-tox-verify-skip-vote-55d4852072f14fa1.yaml b/releasenotes/notes/gerrit-tox-verify-skip-vote-55d4852072f14fa1.yaml
new file mode 100644 (file)
index 0000000..391e6db
--- /dev/null
@@ -0,0 +1,7 @@
+---
+features:
+  - |
+    **gerrit-tox-verify** now has a new parameter ``gerrit-skip-vote``
+    (bool) to control whether Jenkins should skip voting depending on
+    the build outcome. It defaults to ``false`` since it is the
+    default used by the Jenkins Gerrit Trigger Plugin.