From: Lott, Christopher (cl778h) Date: Wed, 16 Oct 2019 01:43:40 +0000 (-0400) Subject: Add comment trigger to PyPI release merge template X-Git-Tag: v0.46.0~8^2 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=b85c24a7b65a07e5f8555b81006c0c46c7e9a5be;p=releng%2Fglobal-jjb.git Add comment trigger to PyPI release merge template Add missing trigger "remerge" to the PyPI release merge template. Move trigger definitions into PyPI templates, instead of defining four separate trigger definition blocks and using each exactly once. Document the required comment text for the triggers. Change-Id: I9c12b89a2e3ded80407e6399c62f6e9337bf5cd7 Issue-Id: RELENG-2317 Signed-off-by: Lott, Christopher (cl778h) --- diff --git a/docs/jjb/lf-python-jobs.rst b/docs/jjb/lf-python-jobs.rst index 2e490fb1..b23ed785 100644 --- a/docs/jjb/lf-python-jobs.rst +++ b/docs/jjb/lf-python-jobs.rst @@ -438,7 +438,7 @@ PyPI section. - gerrit-pypi-merge - github-pypi-merge -:Comment Trigger: pypi-remerge +:Comment Trigger: remerge :Required Parameters: @@ -552,6 +552,8 @@ An example of a pypi release file appears below. - gerrit-pypi-release-verify - github-pypi-release-verify +:Comment Trigger: recheck + :Required Parameters: :build-node: The node to run build on, which must be Centos. @@ -633,6 +635,8 @@ The special parameters are as follows:: - gerrit-pypi-release-merge - github-pypi-release-merge +:Comment Trigger: remerge + :Required Parameters: :build-node: The node to run build on, which must be Centos. diff --git a/jjb/lf-python-jobs.yaml b/jjb/lf-python-jobs.yaml index 7cae5b8a..8a96709d 100644 --- a/jjb/lf-python-jobs.yaml +++ b/jjb/lf-python-jobs.yaml @@ -673,9 +673,9 @@ pre-build-script: "# pre-build script goes here" python-version: python3 stream: master + submodule-disable: false submodule-recursive: true submodule-timeout: 10 - submodule-disable: false tox-dir: "." tox-envs: "" @@ -769,15 +769,6 @@ <<: *lf_pypi_common <<: *lf_pypi_verify_builders - gerrit_verify_triggers: - - patchset-created-event: - exclude-drafts: true - exclude-trivial-rebase: false - exclude-no-code-change: false - - draft-published-event - - comment-added-contains-event: - comment-contains-value: '^Patch Set\s+\d+:\s+(recheck|reverify)\s*$' - scm: - lf-infra-gerrit-scm: jenkins-ssh-credential: "{jenkins-ssh-credential}" @@ -792,7 +783,14 @@ triggers: - gerrit: server-name: "{gerrit-server-name}" - trigger-on: "{obj:gerrit_verify_triggers}" + trigger-on: + - patchset-created-event: + exclude-drafts: true + exclude-trivial-rebase: false + exclude-no-code-change: false + - draft-published-event + - comment-added-contains-event: + comment-contains-value: '^Patch Set\s+\d+:\s+(recheck|reverify)\s*$' projects: - project-compare-type: ANT project-pattern: "{project}" @@ -846,11 +844,6 @@ cron: "" pypi-repo: pypi-test - gerrit_merge_triggers: - - change-merged-event - - comment-added-contains-event: - comment-contains-value: '^Patch Set\s+\d+:\s+remerge\s*$' - scm: - lf-infra-gerrit-scm: jenkins-ssh-credential: "{jenkins-ssh-credential}" @@ -866,7 +859,10 @@ - timed: "{obj:cron}" - gerrit: server-name: "{gerrit-server-name}" - trigger-on: "{obj:gerrit_merge_triggers}" + trigger-on: + - change-merged-event + - comment-added-contains-event: + comment-contains-value: '^Patch Set\s+\d+:\s+remerge\s*$' projects: - project-compare-type: ANT project-pattern: "{project}" @@ -969,15 +965,6 @@ <<: *lf_pypi_release_common <<: *lf_pypi_release_verify_builders - gerrit_verify_triggers: - - patchset-created-event: - exclude-drafts: true - exclude-trivial-rebase: false - exclude-no-code-change: false - - draft-published-event - - comment-added-contains-event: - comment-contains-value: '^Patch Set\s+\d+:\s+(recheck|reverify)\s*$' - scm: - lf-infra-gerrit-scm: jenkins-ssh-credential: "{jenkins-ssh-credential}" @@ -992,7 +979,14 @@ triggers: - gerrit: server-name: "{gerrit-server-name}" - trigger-on: "{obj:gerrit_verify_triggers}" + trigger-on: + - patchset-created-event: + exclude-drafts: true + exclude-trivial-rebase: false + exclude-no-code-change: false + - draft-published-event + - comment-added-contains-event: + comment-contains-value: '^Patch Set\s+\d+:\s+(recheck|reverify)\s*$' projects: - project-compare-type: "ANT" project-pattern: "{project}" @@ -1045,9 +1039,6 @@ <<: *lf_pypi_release_common <<: *lf_pypi_release_merge_builders - gerrit_release_triggers: - - change-merged-event - scm: - lf-infra-gerrit-scm: jenkins-ssh-credential: "{jenkins-ssh-credential}" @@ -1062,7 +1053,10 @@ triggers: - gerrit: server-name: "{gerrit-server-name}" - trigger-on: "{obj:gerrit_release_triggers}" + trigger-on: + - change-merged-event + - comment-added-contains-event: + comment-contains-value: '^Patch Set\s+\d+:\s+remerge\s*$' projects: - project-compare-type: "ANT" project-pattern: "{project}" diff --git a/releasenotes/notes/add-pypi-release-merge-trigger-611855d749779d45.yaml b/releasenotes/notes/add-pypi-release-merge-trigger-611855d749779d45.yaml new file mode 100644 index 00000000..ac280fc3 --- /dev/null +++ b/releasenotes/notes/add-pypi-release-merge-trigger-611855d749779d45.yaml @@ -0,0 +1,7 @@ +--- +fixes: + - | + Add missing trigger "remerge" to the PyPI release merge template. + Move trigger definitions into PyPI templates, instead of defining + four separate trigger definition blocks and using each exactly once. + Document the required comment text for the triggers.