server-name: '{gerrit-server-name}'
trigger-on:
- comment-added-contains-event:
- comment-contains-value: '^Patch Set[ ]+[0-9]+:([ ]+|[\n]+)(stage-release)$'
+ comment-contains-value: '^Patch Set\s+\d+:\s+stage-release\s*$'
projects:
- project-compare-type: 'ANT'
project-pattern: '{project}'
server-name: '{gerrit-server-name}'
trigger-on:
- comment-added-contains-event:
- comment-contains-value: '^Patch Set[ ]+[0-9]+:([ ]+|[\n]+)(stage-release)$'
+ comment-contains-value: '^Patch Set\s+\d+:\s+stage-release\s*$'
projects:
- project-compare-type: 'ANT'
project-pattern: '{project}'
exclude-no-code-change: false
- draft-published-event
- comment-added-contains-event:
- comment-contains-value: '^Patch Set[ ]+[0-9]+:([ ]+|[\n]+)(recheck|reverify)$'
+ comment-contains-value: '^Patch Set\s+\d+:\s+(recheck|reverify)\s*$'
gerrit_trigger_file_paths:
- compare-type: REG_EXP
gerrit_merge_triggers:
- change-merged-event
- comment-added-contains-event:
- comment-contains-value: remerge$
+ comment-contains-value: '^Patch Set\s+\d+:\s+remerge\s*$'
gerrit_trigger_file_paths:
- compare-type: REG_EXP
exclude-no-code-change: false
- draft-published-event
- comment-added-contains-event:
- comment-contains-value: '^Patch Set[ ]+[0-9]+:([ ]+|[\n]+)(recheck|reverify)$'
+ comment-contains-value: '^Patch Set\s+\d+:\s+(recheck|reverify)\s*$'
gerrit_trigger_file_paths:
- compare-type: REG_EXP
submodule-disable: false
gerrit_jjb_deploy_job_triggers:
- comment-added-contains-event:
- comment-contains-value: '^Patch Set[ ]+[0-9]+:([ ]+|[\n]+)(jjb-deploy[:]* (?!\*+$).+$)'
+ comment-contains-value: '^Patch Set\s+\d+:\s+(jjb-deploy[:]* (?!\*+$).+$)'
#####################
# Job Configuration #
gerrit_merge_triggers:
- change-merged-event
- comment-added-contains-event:
- comment-contains-value: remerge$
+ comment-contains-value: '^Patch Set\s+\d+:\s+remerge\s*$'
#####################
# Job Configuration #
exclude-no-code-change: false
- draft-published-event
- comment-added-contains-event:
- comment-contains-value: '^Patch Set[ ]+[0-9]+:([ ]+|[\n]+)(recheck|reverify)$'
+ comment-contains-value: '^Patch Set\s+\d+:\s+(recheck|reverify)\s*$'
#####################
# Job Configuration #
exclude-no-code-change: false
- draft-published-event
- comment-added-contains-event:
- comment-contains-value: '^Patch Set[ ]+[0-9]+:([ ]+|[\n]+)(recheck|reverify)$'
+ comment-contains-value: '^Patch Set\s+\d+:\s+(recheck|reverify)\s*$'
projects:
- project-compare-type: ANT
project-pattern: 'releng/global-jjb'
exclude-no-code-change: false
- draft-published-event
- comment-added-contains-event:
- comment-contains-value: recheck$
+ comment-contains-value: '^Patch Set\s+\d+:\s+(recheck|reverify)\s*$'
projects:
- project-compare-type: ANT
project-pattern: '{project-pattern}'
exclude-no-code-change: false
- draft-published-event
- comment-added-contains-event:
- comment-contains-value: '^Patch Set[ ]+[0-9]+:([ ]+|[\n]+)(recheck|reverify)$'
+ comment-contains-value: '^Patch Set\s+\d+:\s+(recheck|reverify)\s*$'
#####################
# Job Configuration #
gerrit_merge_triggers:
- change-merged-event
- comment-added-contains-event:
- comment-contains-value: remerge$
+ comment-contains-value: '^Patch Set\s+\d+:\s+remerge\s*$'
#####################
# Job Configuration #
exclude-no-code-change: false
- draft-published-event
- comment-added-contains-event:
- comment-contains-value: '^Patch Set[ ]+[0-9]+:([ ]+|[\n]+)(recheck|reverify)$'
+ comment-contains-value: '^Patch Set\s+\d+:\s+(recheck|reverify)\s*$'
gerrit_trigger_file_paths:
- compare-type: REG_EXP
exclude-no-code-change: false
- draft-published-event
- comment-added-contains-event:
- comment-contains-value: '^Patch Set[ ]+[0-9]+:([ ]+|[\n]+)(recheck|reverify)$'
+ comment-contains-value: '^Patch Set\s+\d+:\s+(recheck|reverify)\s*$'
#####################
# Job Configuration #
gerrit_verify_triggers:
- comment-added-contains-event:
- comment-contains-value: '^Patch Set[ ]+[0-9]+:([ ]+|[\n]+)(vote)$'
+ comment-contains-value: '^Patch Set\s+\d+:\s+vote\s*$'
- comment-added-event:
approval-category: 'CRVW'
approval-value: 2
gerrit_clm_triggers:
- comment-added-contains-event:
- comment-contains-value: run-clm$
+ comment-contains-value: '^Patch Set\s+\d+:\s+run-clm\s*$'
parameters:
- lf-infra-parameters:
gerrit_merge_triggers:
- change-merged-event
- comment-added-contains-event:
- comment-contains-value: remerge$
+ comment-contains-value: '^Patch Set\s+\d+:\s+remerge\s*$'
#####################
# Job Configuration #
exclude-no-code-change: false
- draft-published-event
- comment-added-contains-event:
- comment-contains-value: '^Patch Set[ ]+[0-9]+:([ ]+|[\n]+)(recheck|reverify)$'
+ comment-contains-value: '^Patch Set\s+\d+:\s+(recheck|reverify)\s*$'
#####################
# Job Configuration #
gerrit_merge_triggers:
- change-merged-event
- comment-added-contains-event:
- comment-contains-value: remerge$
+ comment-contains-value: '^Patch Set\s+\d+:\s+remerge\s*$'
gerrit_trigger_file_paths:
- compare-type: REG_EXP
gerrit_release_triggers:
- comment-added-contains-event:
- comment-contains-value: stage-release$
+ comment-contains-value: '^Patch Set\s+\d+:\s+stage-release\s*$'
gerrit_trigger_file_paths:
- compare-type: ANT
gerrit_sonar_triggers:
- comment-added-contains-event:
- comment-contains-value: run-sonar$
+ comment-contains-value: '^Patch Set\s+\d+:\s+run-sonar\s*$'
#####################
# Job Configuration #
exclude-no-code-change: false
- draft-published-event
- comment-added-contains-event:
- comment-contains-value: '^Patch Set[ ]+[0-9]+:([ ]+|[\n]+)(recheck|reverify)$'
+ comment-contains-value: '^Patch Set\s+\d+:\s+(recheck|reverify)\s*$'
gerrit_trigger_file_paths:
- compare-type: REG_EXP
exclude-no-code-change: false
- draft-published-event
- comment-added-contains-event:
- comment-contains-value: '^Patch Set[ ]+[0-9]+:([ ]+|[\n]+)(recheck|reverify)$'
+ comment-contains-value: '^Patch Set\s+\d+:\s+(recheck|reverify)\s*$'
#####################
# Job Configuration #
gerrit_clm_triggers:
- comment-added-contains-event:
- comment-contains-value: run-clm$
+ comment-contains-value: '^Patch Set\s+\d+:\s+run-clm\s*$'
#####################
# Job Configuration #
gerrit_sonar_triggers:
- comment-added-contains-event:
- comment-contains-value: run-sonar$
+ comment-contains-value: '^Patch Set\s+\d+:\s+run-sonar\s*$'
#####################
# Job Configuration #
exclude-no-code-change: false
- draft-published-event
- comment-added-contains-event:
- comment-contains-value: '^Patch Set[ ]+[0-9]+:([ ]+|[\n]+)(recheck|reverify)$'
+ comment-contains-value: '^Patch Set\s+\d+:\s+(recheck|reverify)\s*$'
#####################
# Job Configuration #
gerrit_merge_triggers:
- change-merged-event
- comment-added-contains-event:
- comment-contains-value: remerge$
+ comment-contains-value: '^Patch Set\s+\d+:\s+remerge\s*$'
- ref-updated-event
#####################
exclude-no-code-change: false
- draft-published-event
- comment-added-contains-event:
- comment-contains-value: '^Patch Set[ ]+[0-9]+:([ ]+|[\n]+)(recheck|reverify)$'
+ comment-contains-value: '^Patch Set\s+\d+:\s+(recheck|reverify)\s*$'
#####################
# Job Configuration #
gerrit_wss_triggers:
- comment-added-contains-event:
- comment-contains-value: run-whitesource$
+ comment-contains-value: '^Patch Set\s+\d+:\s+(run-whitesource)\s*$'
#####################
# Job Configuration #
--- /dev/null
+---
+upgrade:
+ - |
+ Update gerrit comment trigger to use a more standard regex and avoid triggering
+ jobs, when these keywords are intended to be used as code review comments
+ between users. Also improve the regexs to make them more succinct and
+ readable.