diff --git a/Jenkinsfile b/Jenkinsfile index 8a306f7..c840556 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,3 +1,6 @@ +// Multi-branch pipeline. Build once on wednesday from a "master" branch only +CRON_SETTINGS = BRANCH_NAME == "master" ? '''H H * * 3''' + pipeline { environment { imagename = "phaefelfinger/tv7playlist" @@ -7,6 +10,10 @@ pipeline { agent { node { label 'docker' } } + triggers { + cron(CRON_SETTINGS) + } + stages { stage('Cloning repository') { steps {