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: 'Code-Review'
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
- lf-provide-maven-settings:
global-settings-file: '{mvn-global-settings}'
settings-file: '{mvn-settings}'
- - shell: !include-raw-escape: ../shell/maven-patch-release.sh
- lf-maven-versions-plugin:
maven-versions-plugin: '{maven-versions-plugin}'
mvn-version: '{mvn-version}'
mvn-pom: '{mvn-pom}'
mvn-settings: '{mvn-settings}'
+ - shell: !include-raw-escape: ../shell/maven-patch-release.sh
- inject:
properties-content: |
CONTAINER_PULL_REGISTRY={container-public-registry}
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
+---
+fixes:
+ - |
+ Fix error with handling unbound arrays for search extensions, when using
+ `set -u`. The correct way of using this.
+
+ .. code-block:: bash
+
+ set -u
+ arr=()
+ echo "output: '${arr[@]}'"
+ bash: arr[@]: unbound variable
+ echo "output: '${arr[@]:-}'"
+ foo: ''
--- /dev/null
+---
+fixes:
+ - |
+ lf-maven-versions-plugin builder step needs to run before maven-patch-release.sh
+ as this second script contains a condition to confirm if the maven vesions
+ plugin was selected as a way to remove the 'SNAPSHOT' pattern from the pom.xml
+ files.
+ lf-maven-docker-stage was based on lf-maven-stage and it seems that these particular
+ builder steps were switched in place accidentally.
--- /dev/null
+---
+fixes:
+ - |
+ request-2.22.0 does not work with python-3.4.9, so pin requests
+ to v2.21.0 to address the tox failures.
--- /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.
# Handle multiple search extensions as separate values to '-p|--pattern'
set -f # Disable pathname expansion
+ search_exts=()
IFS=' ' read -r -a search_exts <<< "${ARCHIVE_ARTIFACTS:-}"
pattern_opts=()
- for search_ext in "${search_exts[@]}";
+ for search_ext in "${search_exts[@]:-}";
do
pattern_opts+=("-p" "$search_ext")
done
coala
coala-bears
pygments~=2.3.1
+ # request-2.22.0 does not work with python-3.4.9
+ requests~=2.21.0
# Markdown lint requires nodejs
nodeenv
commands =