Skip to content

Commit

Permalink
auto-build weekly instead of manually (#3640)
Browse files Browse the repository at this point in the history
* auto-build weekly instead of manually

* time to learn scripted (again)

* spotless
  • Loading branch information
darinpope committed Sep 26, 2024
1 parent 8d26fc0 commit fafadec
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
properties([disableConcurrentBuilds(abortPrevious: true), buildDiscarder(logRotator(numToKeepStr: '7'))])
properties([
disableConcurrentBuilds(abortPrevious: true),
buildDiscarder(logRotator(numToKeepStr: '7')),
pipelineTriggers([cron('H 11 * * 5')])
])

if (BRANCH_NAME == 'master' && currentBuild.buildCauses*._class == ['jenkins.branch.BranchEventCause']) {
currentBuild.result = 'NOT_BUILT'
Expand Down

0 comments on commit fafadec

Please sign in to comment.