From e22b4ae0d41129f2910515c5fc25ff84fe63581b Mon Sep 17 00:00:00 2001 From: Eric Ball Date: Fri, 10 Jul 2020 15:49:10 -0700 Subject: [PATCH] Add lf-pipelines-verify job for global pipelines This job will test the releng/pipelines repo. This also introduces a framework for adding additonal pipeline jobs to global-jjb. Issue: RELENG-2792 Change-Id: I5440b6d1a8dd4b56ebec2d810331cd52f8bbe4c4 Signed-off-by: Eric Ball --- docs/jjb/lf-ci-jobs.rst | 16 ++++++ jjb/lf-ci-jobs.yaml | 62 ++++++++++++++++++++++ .../lf-pipelines-verify-86d7003f660e7974.yaml | 4 ++ 3 files changed, 82 insertions(+) create mode 100644 releasenotes/notes/lf-pipelines-verify-86d7003f660e7974.yaml diff --git a/docs/jjb/lf-ci-jobs.rst b/docs/jjb/lf-ci-jobs.rst index 116de87a..694bf2de 100644 --- a/docs/jjb/lf-ci-jobs.rst +++ b/docs/jjb/lf-ci-jobs.rst @@ -566,6 +566,22 @@ other file changes. Verifies INFO.yaml files follow the schema defined in :gerrit_verify_triggers: Override Gerrit Triggers. +.. _lf_pipelines_verify: + +LF Pipelines Verify +------------------- + +Verify job for the LF RelEng pipeline library. This can be implemented on any +Jenkins machine that has the appropriate Pipelines plugins installed. It will +look for a Gerrit system named "lf-releng" (which should be mapped to +https://gerrit.linuxfoundation.org/infra/), and pull in the Jenkinsfile in the +root directory of the repo. + +:Template Names: + - lf-pipelines-verify + +:Comment Trigger: recheck|reverify + .. _license-checker: License Checker diff --git a/jjb/lf-ci-jobs.yaml b/jjb/lf-ci-jobs.yaml index 9c62d971..1ccb06b7 100644 --- a/jjb/lf-ci-jobs.yaml +++ b/jjb/lf-ci-jobs.yaml @@ -2338,3 +2338,65 @@ <<: *lf_sonar_builders_prescan_script # yamllint disable-line rule:key-duplicates <<: *lf_sonar_github_common + +############# +# Pipelines # +############# + +- lf_pipelines_common: &lf_pipelines_common + name: lf-pipelines-common + + ###################### + # Default parameters # + ###################### + + branch: master + build-timeout: 90 + disable-job: false + stream: master + submodule-recursive: true + submodule-timeout: 10 + submodule-disable: false + +- lf_global_pipelines_common: &lf_global_pipelines_common + name: lf-global-pipelines-common + + # All jobs are triggering from the same source + git-url: https://gerrit.linuxfoundation.org/infra/releng/pipelines + triggers: + - gerrit: + server-name: "lf-releng" + 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: "releng/pipelines" + branches: + - branch-compare-type: ANT + branch-pattern: "**/master" + +- job-template: + name: "lf-pipelines-verify" + id: lf-pipelines-verify + <<: *lf_pipelines_common + <<: *lf_global_pipelines_common + + project-type: pipeline + pipeline-scm: + scm: + - lf-infra-gerrit-scm: + git-url: "{git-url}" + refspec: "$GERRIT_REFSPEC" + branch: "$GERRIT_BRANCH" + submodule-recursive: "{submodule-recursive}" + submodule-timeout: "{submodule-timeout}" + submodule-disable: "{submodule-disable}" + choosing-strategy: gerrit + jenkins-ssh-credential: "{jenkins-ssh-credential}" + sandbox: true diff --git a/releasenotes/notes/lf-pipelines-verify-86d7003f660e7974.yaml b/releasenotes/notes/lf-pipelines-verify-86d7003f660e7974.yaml new file mode 100644 index 00000000..6b2b273a --- /dev/null +++ b/releasenotes/notes/lf-pipelines-verify-86d7003f660e7974.yaml @@ -0,0 +1,4 @@ +--- +features: + - | + Introduce lf-pipelines-verify job to test the LF's global pipeline library. -- 2.16.6