X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=jjb%2Flf-python-jobs.yaml;h=c3206e5992b1b230ad3aba6924befef6e6811d01;hb=a41a1b60a457a33fbb51bebdabb603a8a51d5c2f;hp=59ae5494115741fa932ffe06ade4dac030c1ecc6;hpb=a5438234d6ea32897b97a47044b0999fe501c532;p=releng%2Fglobal-jjb.git diff --git a/jjb/lf-python-jobs.yaml b/jjb/lf-python-jobs.yaml index 59ae5494..c3206e59 100644 --- a/jjb/lf-python-jobs.yaml +++ b/jjb/lf-python-jobs.yaml @@ -507,6 +507,14 @@ concurrent: false <<: *lf_tox_sonarqube + ###################### + # Default parameters # + ###################### + + gerrit_sonar_triggers: + - comment-added-contains-event: + comment-contains-value: '^Patch Set\s+\d+:\s+run-sonar\s*$' + scm: - lf-infra-gerrit-scm: branch: "$GERRIT_BRANCH" @@ -522,9 +530,7 @@ - timed: "{obj:cron}" - gerrit: server-name: "{gerrit-server-name}" - trigger-on: - - comment-added-contains-event: - comment-contains-value: '^Patch Set\s+\d+:\s+run-sonar\s*$' + trigger-on: "{obj:gerrit_sonar_triggers}" projects: - project-compare-type: "ANT" project-pattern: "{project}" @@ -886,8 +892,8 @@ parallel: "{parallel}" - shell: !include-raw-escape: ../shell/pypi-dist-build.sh -- lf_pypi_merge_builders: &lf_pypi_merge_builders - name: lf-pypi-merge-builders +- lf_pypi_publish_builders: &lf_pypi_publish_builders + name: lf-pypi-publish-builders builders: - lf-infra-pre-build @@ -978,9 +984,9 @@ name: "{project-name}-pypi-merge-{stream}" id: gerrit-pypi-merge <<: *lf_pypi_common - <<: *lf_pypi_merge_builders + <<: *lf_pypi_publish_builders - cron: "" + cron: "" # avoid for pypi which rejects duplicates pypi-repo: pypi-test scm: @@ -1015,7 +1021,7 @@ name: "{project-name}-pypi-merge-{stream}" id: github-pypi-merge <<: *lf_pypi_common - <<: *lf_pypi_merge_builders + <<: *lf_pypi_publish_builders cron: "" pypi-repo: pypi-test @@ -1050,3 +1056,77 @@ white-list-target-branches: - "{branch}" included-regions: "{obj:github_included_regions}" + +- job-template: + name: "{project-name}-pypi-stage-{stream}" + id: gerrit-pypi-stage + <<: *lf_pypi_common + <<: *lf_pypi_publish_builders + + cron: "" + pypi-repo: pypi-test + + gerrit_stage_triggers: + - comment-added-contains-event: + comment-contains-value: '^Patch Set\s+\d+:\s+stage-release\s*$' + + scm: + - lf-infra-gerrit-scm: + jenkins-ssh-credential: "{jenkins-ssh-credential}" + git-url: "{git-url}" + refspec: "$GERRIT_REFSPEC" + branch: "$GERRIT_BRANCH" + submodule-recursive: "{submodule-recursive}" + submodule-timeout: "{submodule-timeout}" + submodule-disable: "{submodule-disable}" + # stage jobs always build from tip + choosing-strategy: default + + triggers: + - timed: "{obj:cron}" + - gerrit: + server-name: "{gerrit-server-name}" + trigger-on: "{obj:gerrit_stage_triggers}" + projects: + - project-compare-type: ANT + project-pattern: "{project}" + branches: + - branch-compare-type: ANT + branch-pattern: "**/{branch}" + file-paths: "{obj:gerrit_trigger_file_paths}" + +- job-template: + name: "{project-name}-pypi-stage-{stream}" + id: github-pypi-stage + <<: *lf_pypi_common + <<: *lf_pypi_publish_builders + + cron: "" + pypi-repo: pypi-test + + properties: + - github: + url: "{github-url}/{github-org}/{project}" + + scm: + - lf-infra-github-scm: + url: "{git-clone-url}{github-org}/{project}" + refspec: "" + branch: "refs/heads/{branch}" + submodule-recursive: "{submodule-recursive}" + submodule-timeout: "{submodule-timeout}" + submodule-disable: "{submodule-disable}" + choosing-strategy: default + jenkins-ssh-credential: "{jenkins-ssh-credential}" + + triggers: + - timed: "{obj:cron}" + - github-pull-request: + trigger-phrase: "^stage-release$" + only-trigger-phrase: true + status-context: "Release" + permit-all: true + github-hooks: true + white-list-target-branches: + - "{branch}" + included-regions: "{obj:github_included_regions}"