jobs:
- gerrit-jenkins-cfg-merge
+ - gerrit-jenkins-sandbox-cleanup
- gerrit-jjb-deploy-job
- gerrit-jjb-merge
- gerrit-jjb-verify
jobs:
- github-jenkins-cfg-merge
+ - github-jenkins-sandbox-cleanup
- github-jjb-deploy-job
- github-jjb-merge
- github-jjb-verify
branch: master
build-timeout: 10
github-url: 'https://github.com'
- jjb-version: 2.0.5
+ jjb-version: 2.2.1
stream: master
submodule-recursive: true
white-list-target-branches:
- '{branch}'
+
+ ###########################
+ # JENKINS SANDBOX CLEANUP #
+ ###########################
+
+ - lf_jenkins_sandbox_cleanup: &lf_jenkins_sandbox_cleanup
+ name: lf-jenkins-sandbox-cleanup
+
+ ######################
+ # Default parameters #
+ ######################
+
+ build-timeout: 30
+ # Run every Saturday at 08:00 UTC
+ cron: '0 8 * * 6'
+
+ #####################
+ # Job Configuration #
+ #####################
+
+ project-type: freestyle
+ node: '{build-node}'
+ concurrent: true
+
+ parameters:
+ - lf-infra-jjb-parameters:
+ jjb-version: '{jjb-version}'
+
+ triggers:
+ - timed: '{obj:cron}'
+
+ builders:
+ - lf-infra-jjbini
+ - shell: !include-raw-escape:
+ - ../shell/jjb-install.sh
+ - ../shell/jenkins-sandbox-cleanup.sh
+ - ../shell/jjb-cleanup.sh
+
+ - job-template:
+ name: '{project-name}-jenkins-sandbox-cleanup'
+ id: gerrit-jenkins-sandbox-cleanup
+ <<: *lf_jjb_common
+ # yamllint disable-line rule:key-duplicates
+ <<: *lf_jenkins_sandbox_cleanup
+
+ - job-template:
+ name: '{project-name}-jenkins-sandbox-cleanup'
+ id: github-jenkins-sandbox-cleanup
+ <<: *lf_jjb_common
+ # yamllint disable-line rule:key-duplicates
+ <<: *lf_jenkins_sandbox_cleanup
+
+
##################
# JJB DEPLOY JOB #
##################