X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=jjb%2Flf-ci-jobs.yaml;h=6bc8b59359bd427e3f1e1db4e94b0032fc886d13;hb=refs%2Fchanges%2F85%2F11185%2F2;hp=5b96ed1cde4036fff2335374b3fc5fc29103b215;hpb=4e5067df3af3dcee506bb94ab35011cbc9cf1924;p=releng%2Fglobal-jjb.git diff --git a/jjb/lf-ci-jobs.yaml b/jjb/lf-ci-jobs.yaml index 5b96ed1c..6bc8b593 100644 --- a/jjb/lf-ci-jobs.yaml +++ b/jjb/lf-ci-jobs.yaml @@ -20,8 +20,6 @@ - job-group: name: '{project-name}-packer-jobs' - packer-version: 1.2.2 - jobs: - gerrit-packer-merge - gerrit-packer-verify @@ -30,8 +28,6 @@ - job-group: name: '{project-name}-github-packer-jobs' - packer-version: 1.2.2 - jobs: - github-packer-merge - github-packer-verify @@ -86,6 +82,7 @@ stream: master submodule-recursive: true packer-cloud-settings: packer-cloud-env + packer-version: 1.2.2 ##################### # Job Configuration # @@ -105,7 +102,7 @@ stream: '{stream}' branch: '{branch}' lftools-version: '{lftools-version}' - - lf-infra-packer-parameters: + - lf-packer-parameters: packer-version: '{packer-version}' wrappers: @@ -125,7 +122,7 @@ description: Jenkins Job Builder version to download and install. - parameter: - name: lf-infra-packer-parameters + name: lf-packer-parameters parameters: - string: name: PACKER_VERSION @@ -141,17 +138,26 @@ branch: master build-timeout: 10 - jjb-version: 2.0.3 + jjb-version: 2.0.5 stream: master submodule-recursive: true gerrit_trigger_file_paths: - - compare-type: ANT - pattern: '**/*.sh' - - compare-type: ANT - pattern: '**/*.yaml' - - compare-type: ANT - pattern: '**/global-jjb' + - compare-type: REG_EXP + pattern: '.*\.groovy' + - compare-type: REG_EXP + pattern: '.*\.sh' + - compare-type: REG_EXP + pattern: '.*\.(yaml|yml)' + - compare-type: REG_EXP + pattern: '.*\/global-jjb' + + # github_included_regions MUST match gerrit_trigger_file_paths + github_included_regions: + - '.*\.groovy' + - '.*\.sh' + - '.*\.(yaml|yml)' + - '.*\/global-jjb' ##################### # Job Configuration # @@ -370,8 +376,8 @@ scm: - lf-infra-github-scm: url: '{git-clone-url}{github-org}/{project}' - refspec: '+refs/pull/*:refs/remotes/origin/pr/*' - branch: '$sha1' + refspec: '' + branch: 'refs/heads/{branch}' submodule-recursive: true choosing-strategy: default jenkins-ssh-credential: '{jenkins-ssh-credential}' @@ -464,10 +470,15 @@ trigger-on: '{obj:gerrit_jjb_deploy_job_triggers}' projects: - project-compare-type: ANT - project-pattern: '{project}' + project-pattern: '**' branches: - branch-compare-type: ANT - branch-pattern: '**/{branch}' + branch-pattern: '**' + skip-vote: + success: true + failed: true + unstable: true + notbuilt: true - job-template: name: '{project-name}-jjb-deploy-job' @@ -488,17 +499,12 @@ jenkins-ssh-credential: '{jenkins-ssh-credential}' triggers: - - lf-infra-github-pr-trigger: + - github-pull-request: trigger-phrase: '^jjb-deploy (?!\*+$).+$' only-trigger-phrase: true status-context: 'JJB Deploy Job' permit-all: true github-hooks: true - github-org: '' - github_pr_whitelist: - - '' - github_pr_admin_list: - - '' ############# # JJB Merge # @@ -525,6 +531,7 @@ - shell: !include-raw-escape: - ../shell/jjb-install.sh - ../shell/jjb-merge-job.sh + - ../shell/jjb-cleanup.sh - job-template: name: '{project-name}-jjb-merge' @@ -563,6 +570,10 @@ # yamllint disable-line rule:key-duplicates <<: *lf_jjb_merge + ##################### + # Job Configuration # + ##################### + properties: - github: url: '{git-url}/{github-org}/{project}' @@ -580,15 +591,17 @@ - github - pollscm: cron: '' - - lf-infra-github-pr-trigger: + - github-pull-request: trigger-phrase: '^remerge$' only-trigger-phrase: true status-context: 'JJB Merge' permit-all: false github-hooks: true - github-org: '{github-org}' - github_pr_whitelist: '{obj:github_pr_whitelist}' - github_pr_admin_list: '{obj:github_pr_admin_list}' + org-list: + - '{github-org}' + white-list: '{obj:github_pr_whitelist}' + admin-list: '{obj:github_pr_admin_list}' + included-regions: '{obj:github_included_regions}' ############## # JJB Verify # @@ -623,6 +636,7 @@ - ../shell/jjb-install.sh - ../shell/jjb-verify-job.sh - ../shell/jjb-check-unicode.sh + - ../shell/jjb-cleanup.sh - lf-infra-gpg-verify-git-signature - job-template: @@ -632,8 +646,16 @@ # yamllint disable-line rule:key-duplicates <<: *lf_jjb_verify + ###################### + # Default parameters # + ###################### + git-url: '$GIT_URL/$GERRIT_PROJECT' + ##################### + # Job Configuration # + ##################### + scm: - lf-infra-gerrit-scm: git-url: '{git-url}' @@ -662,6 +684,10 @@ # yamllint disable-line rule:key-duplicates <<: *lf_jjb_verify + ##################### + # Job Configuration # + ##################### + properties: - github: url: '{git-url}/{github-org}/{project}' @@ -676,17 +702,13 @@ jenkins-ssh-credential: '{jenkins-ssh-credential}' triggers: - - lf-infra-github-pr-trigger: + - github-pull-request: trigger-phrase: '^recheck$' only-trigger-phrase: false status-context: 'JJB Verify' permit-all: true github-hooks: true - github-org: '' - github_pr_whitelist: - - '' - github_pr_admin_list: - - '' + included-regions: '{obj:github_included_regions}' ################ # Packer Merge #