From: Alexandru Avadanii Date: Wed, 8 May 2019 14:54:00 +0000 (+0200) Subject: gerrit-tox-verify: Allow skip-vote configuration X-Git-Tag: v0.38.0~14 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F56%2F15556%2F3;p=releng%2Fglobal-jjb.git gerrit-tox-verify: Allow skip-vote configuration 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 --- diff --git a/jjb/lf-python-jobs.yaml b/jjb/lf-python-jobs.yaml index 8240845c..61bb5d2d 100644 --- a/jjb/lf-python-jobs.yaml +++ b/jjb/lf-python-jobs.yaml @@ -471,6 +471,7 @@ # Default parameters # ###################### + gerrit-skip-vote: false gerrit_verify_triggers: - patchset-created-event: exclude-drafts: true @@ -506,6 +507,11 @@ - 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 index 00000000..391e6dbd --- /dev/null +++ b/releasenotes/notes/gerrit-tox-verify-skip-vote-55d4852072f14fa1.yaml @@ -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.