diff --git a/Jenkinsfile b/Jenkinsfile index 9c338e0b..9ef4e1be 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,11 +1,23 @@ node() { + properties( + [ + pipelineTriggers([ + cron( env.BRANCH_NAME.equals('master') ? 'H H * * *' : '') + ]) + ] + ) stage('Checkout') { - checkoutInfo = checkout scm + checkout scm } stage('Run build script') { sh "python ./scripts/getrelease.py --copy-build ./latest --base-dir releases --remove" } stage('Commit/Push') { - sh "./scripts/commit.bash" + if (env.BRANCH_NAME == 'master') { + sh './scripts/commit.bash' + } + else { + sh "echo No commit/push for non-master branch" + } } }