---
-- job-group:
- name: '{project-name}-ci-jobs'
-
- jobs:
- - gerrit-jenkins-cfg-merge
- - gerrit-jenkins-sandbox-cleanup
- - gerrit-jjb-deploy-job
- - gerrit-jjb-merge
- - gerrit-jjb-verify
-
-- job-group:
- name: '{project-name}-github-ci-jobs'
-
- jobs:
- - github-jenkins-cfg-merge
- - github-jenkins-sandbox-cleanup
- - github-jjb-deploy-job
- - github-jjb-merge
- - github-jjb-verify
-
-- job-group:
- name: '{project-name}-info-yaml-jobs'
-
- jobs:
- - gerrit-info-yaml-verify
-
-- job-group:
- name: '{project-name}-github-info-yaml-jobs'
-
- jobs:
- - github-info-yaml-verify
-
-- job-group:
- name: '{project-name}-packer-jobs'
-
- jobs:
- - gerrit-packer-merge
- - gerrit-packer-verify
-
-- job-group:
- name: '{project-name}-github-packer-jobs'
-
- jobs:
- - github-packer-merge
- - github-packer-verify
####################
# COMMON FUNCTIONS #
branch: master
build-timeout: 90
cron: '@monthly'
+ disable-job: false
github-url: 'https://github.com'
stream: master
submodule-recursive: true
project-type: freestyle
node: '{build-node}'
+ disabled: '{disable-job}'
properties:
- lf-infra-properties:
branch: master
build-timeout: 10
+ disable-job: false
github-url: 'https://github.com'
jjb-version: 2.2.1
stream: master
project-type: freestyle
node: '{build-node}'
+ disabled: '{disable-job}'
properties:
- lf-infra-properties:
######################
branch: master
+ disable-job: false
git-url: '$GIT_URL/$GERRIT_PROJECT'
stream: master
gerrit_merge_triggers:
project-type: freestyle
node: '{build-node}'
+ disabled: '{disable-job}'
properties:
- lf-infra-properties:
branch: master
cron: '@daily'
+ disable-job: false
git-url: '$GIT_URL/$GERRIT_PROJECT'
github-url: 'https://github.com'
jenkins-silos: production sandbox
project-type: freestyle
node: '{build-node}'
concurrent: false
+ disabled: '{disable-job}'
properties:
- lf-infra-properties:
trigger-phrase: '^remerge$'
only-trigger-phrase: true
status-context: 'Jenkins CFG Merge'
- permit-all: false
+ permit-all: true
github-hooks: true
org-list:
- '{github-org}'
build-timeout: 30
# Run every Saturday at 08:00 UTC
cron: '0 8 * * 6'
+ disable-job: false
#####################
# Job Configuration #
project-type: freestyle
node: '{build-node}'
concurrent: true
+ disabled: '{disable-job}'
parameters:
- lf-infra-jjb-parameters:
######################
branch: master
+ disable-job: false
# jjb-deploy should always clone $PROJECT regardless of what
# $GERRIT_PROJECT triggered the job.
git-url: '$GIT_URL/$PROJECT'
project-type: freestyle
node: '{build-node}'
concurrent: true
+ disabled: '{disable-job}'
properties:
- lf-infra-properties:
trigger-phrase: '^remerge$'
only-trigger-phrase: true
status-context: 'JJB Merge'
- permit-all: false
+ permit-all: true
github-hooks: true
org-list:
- '{github-org}'
white-list-target-branches:
- '{branch}'
+############################
+# JJB Verify Upstream GJJB #
+############################
+
+- lf_jjb_verify: &lf_jjb_verify_upstream_gjjb
+ name: lf-jjb-verify-upstream-gjjb
+
+ #####################
+ # Job Configuration #
+ #####################
+
+ concurrent: true
+
+ builders:
+ - shell: |
+ cd jjb/global-jjb
+ git fetch https://gerrit.linuxfoundation.org/infra/releng/global-jjb $GERRIT_REFSPEC
+ git cherry-pick FETCH_HEAD
+ - lf-infra-jjbini
+ - shell: !include-raw-escape:
+ - ../shell/git-validate-jira-urls.sh
+ - ../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:
+ name: '{project-name}-jjb-verify-upstream-gjjb'
+ id: gerrit-jjb-verify-upstream-gjjb
+ <<: *lf_jjb_common
+ # yamllint disable-line rule:key-duplicates
+ <<: *lf_jjb_verify_upstream_gjjb
+
+ ######################
+ # Default parameters #
+ ######################
+
+ git-url: '$GIT_URL/$PROJECT'
+
+ #####################
+ # Job Configuration #
+ #####################
+
+ scm:
+ - lf-infra-gerrit-scm:
+ git-url: '{git-url}'
+ refspec: ''
+ branch: 'master'
+ submodule-recursive: true
+ choosing-strategy: default
+ jenkins-ssh-credential: '{jenkins-ssh-credential}'
+
+ triggers:
+ - gerrit:
+ server-name: 'LinuxFoundation'
+ 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[ ]+[0-9]+:([ ]+|[\n]+)(recheck|reverify)$'
+ projects:
+ - project-compare-type: ANT
+ project-pattern: 'releng/global-jjb'
+ branches:
+ - branch-compare-type: ANT
+ branch-pattern: '**/master'
+ override-votes: true
+ gerrit-build-failed-codereview-value: -1
+ gerrit-build-failed-verified-value: 0
+ gerrit-build-successful-codereview-value: 1
+ gerrit-build-successful-verified-value: 0
+
#################
# License Check #
#################
branch: master
build-days-to-keep: 7
build-timeout: 15
+ disable-job: false
file-patterns: >
*.go
*.groovy
project-type: freestyle
node: '{build-node}'
concurrent: true
+ disabled: '{disable-job}'
properties:
- lf-infra-properties:
build-days-to-keep: 7
build-timeout: 10
cron: '@daily'
+ disable-job: false
git-url: '$GIT_URL/$PROJECT'
github-url: 'https://github.com'
openstack-cloud: vex
project-type: freestyle
node: '{build-node}'
concurrent: false
+ disabled: '{disable-job}'
properties:
- lf-infra-properties:
trigger-phrase: '^remerge$'
only-trigger-phrase: true
status-context: 'Packer {platforms}-{templates} Merge'
- permit-all: false
+ permit-all: true
github-hooks: true
org-list:
- '{github-org}'