Set up the Docker 'official' Pipeline to execute weekly

References JENKINS-39804
This commit is contained in:
R. Tyler Croy 2017-01-10 15:39:53 -08:00
parent d57bb210c7
commit f05bcfef83
No known key found for this signature in database
GPG Key ID: 1426C7DC3F51E16F
1 changed files with 4 additions and 2 deletions

View File

@ -1,7 +1,9 @@
#!groovy
/* Only keep the 10 most recent builds. */
properties([[$class: 'BuildDiscarderProperty', strategy: [$class: 'LogRotator', numToKeepStr: '10']]])
properties([
buildDiscarder(logRotator(numToKeepStr: '10')),
pipelineTriggers([cron('@weekly')]),
])
node('docker') {
stage('Checkout') {