Skip to content

Commit

Permalink
Cron jenkins (#3)
Browse files Browse the repository at this point in the history
* Small changes to jenkinsfile for crontab triggering

* Try diff syntax

* Fixup bad syntax

* Third times the charm

* this times the charm

* this times the charm
  • Loading branch information
FuriousJulius authored Aug 6, 2020
1 parent d6b6126 commit a42b77e
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -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"
}
}
}

0 comments on commit a42b77e

Please sign in to comment.