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>
# 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.
--- /dev/null
+---
+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.