Skip to content

Commit

Permalink
Fix cron DSL entries for the _nightly_node_labeler (#1120)
Browse files Browse the repository at this point in the history
Signed-off-by: Jose Luis Rivero <[email protected]>
  • Loading branch information
j-rivero authored Feb 29, 2024
1 parent 89422f5 commit 576fefb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions jenkins-scripts/dsl/_configs_/Globals.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ class Globals
static CRON_ON_WEEKEND = 'H H * * 6-7'
// Run nightly scheduler every 20 minutes being sure to
// run it at 9 just before the nightly creation.
static CRON_NIGHTLY_NODES = [
'*/20 9-23 * * *',
'*/20 0-8 * * *']
static CRON_NIGHTLY_NODES = '*/20 9-23 * * * \n20 0-8 * * *'

// Start the nightly generation 10 minutes after the nigthly node
// initial generation
Expand Down
4 changes: 1 addition & 3 deletions jenkins-scripts/dsl/core.dsl
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,7 @@ nightly_labeler.with
label Globals.nontest_label("master")

triggers {
Globals.CRON_NIGHTLY_NODES.each { cron_entry ->
cron(cron_entry)
}
cron(Globals.CRON_NIGHTLY_NODES)
}

steps
Expand Down

0 comments on commit 576fefb

Please sign in to comment.