forked from elastic/e2e-testing
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[7.17](backport elastic#2159) jjbb: daily job with branch aliases (el…
- Loading branch information
1 parent
62b1aeb
commit 9b0e1eb
Showing
10 changed files
with
92 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
- job: | ||
name: e2e-tests/e2e-testing-schedule-daily | ||
display-name: Jobs scheduled daily (weekdays) | ||
description: Jobs scheduled daily (weekdays) | ||
view: E2E | ||
project-type: pipeline | ||
parameters: | ||
- string: | ||
name: branch_specifier | ||
default: main | ||
description: the Git branch specifier to build | ||
pipeline-scm: | ||
script-path: .ci/schedule-daily.groovy | ||
scm: | ||
- git: | ||
url: [email protected]:elastic/e2e-testing.git | ||
refspec: +refs/heads/*:refs/remotes/origin/* | ||
wipe-workspace: 'True' | ||
name: origin | ||
shallow-clone: true | ||
credentials-id: f6c7695a-671e-4f4f-a331-acdce44ff9ba | ||
branches: | ||
- $branch_specifier | ||
triggers: | ||
- timed: 'H H(2-3) * * 1-5' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
@Library('apm@current') _ | ||
|
||
pipeline { | ||
agent none | ||
environment { | ||
NOTIFY_TO = credentials('notify-to') | ||
PIPELINE_LOG_LEVEL = 'INFO' | ||
} | ||
options { | ||
timeout(time: 1, unit: 'HOURS') | ||
buildDiscarder(logRotator(numToKeepStr: '20', artifactNumToKeepStr: '20')) | ||
timestamps() | ||
ansiColor('xterm') | ||
disableResume() | ||
durabilityHint('PERFORMANCE_OPTIMIZED') | ||
} | ||
triggers { | ||
cron('H H(4-5) * * 1-5') | ||
} | ||
stages { | ||
stage('Nighly e2e builds') { | ||
steps { | ||
runBuilds(quietPeriodFactor: 100, branches: ['main', '8.<minor>', '8.<next-patch>', '7.<minor>']) | ||
} | ||
} | ||
} | ||
post { | ||
cleanup { | ||
notifyBuildResult(prComment: false) | ||
} | ||
} | ||
} | ||
|
||
def runBuilds(Map args = [:]) { | ||
def branches = getBranchesFromAliases(aliases: args.branches) | ||
|
||
def quietPeriod = 0 | ||
branches.each { branch -> | ||
build(quietPeriod: quietPeriod, job: "e2e-tests/e2e-testing-fleet-daily-mbp/${branch}", wait: false, propagate: false) | ||
build(quietPeriod: quietPeriod, job: "e2e-tests/e2e-testing-helm-daily-mbp/${branch}", wait: false, propagate: false) | ||
build(quietPeriod: quietPeriod, job: "e2e-tests/e2e-testing-k8s-autodiscovery-daily-mbp/${branch}", wait: false, propagate: false) | ||
// Increate the quiet period for the next iteration | ||
quietPeriod += args.quietPeriodFactor | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters