Skip to content

Commit

Permalink
refactor(ci): change latest stable branch and schedule for QA run
Browse files Browse the repository at this point in the history
The latest branch is now stable/1.1 but we also still want to run nightly builds for stable/1.0 so the latest stable gets the 2 am slot.
  • Loading branch information
pihme committed Jul 14, 2021
1 parent e37cd5a commit 05d73ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def masterBranchName = 'master'
def isMasterBranch = env.BRANCH_NAME == masterBranchName
def developBranchName = 'develop'
def isDevelopBranch = env.BRANCH_NAME == developBranchName
def latestStableBranchName = 'stable/1.0'
def latestStableBranchName = 'stable/1.1'
def isLatestStable = env.BRANCH_NAME == latestStableBranchName

//for develop branch keep builds for 7 days to be able to analyse build errors, for all other branches, keep the last 10 builds
Expand All @@ -28,8 +28,8 @@ itAgentUnstashDirectory = '.tmp/it'
itFlakyTestStashName = 'it-flakyTests'

// the develop branch should be run at midnight to do a nightly build including QA test run
// the latest stable branch is run an hour later at 01:00 AM.
def cronTrigger = isDevelopBranch ? '0 0 * * *' : isLatestStable ? '0 1 * * *' : ''
// the latest stable branch is run two hour later at 01:00 AM.
def cronTrigger = isDevelopBranch ? '0 0 * * *' : isLatestStable ? '0 2 * * *' : ''

pipeline {
agent {
Expand Down

0 comments on commit 05d73ae

Please sign in to comment.