-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Jenkins pipelines for pre-release and nightly testing (#15426)
Signed-off-by: Dmytro Nochevnov <[email protected]>
- Loading branch information
1 parent
1bd9ce0
commit 2c756e6
Showing
4 changed files
with
424 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
pipeline { | ||
agent { label 'rhel7-8gb' } | ||
|
||
options { | ||
timestamps() | ||
timeout(time: 2, unit: 'HOURS') | ||
buildDiscarder(logRotator(artifactDaysToKeepStr: '', | ||
artifactNumToKeepStr: '', daysToKeepStr: '60', numToKeepStr: '30')) | ||
} | ||
|
||
// build each 3 hours | ||
triggers { cron("H H/3 * * *") } | ||
|
||
parameters { | ||
string(name: 'emails', | ||
defaultValue: '[email protected]', | ||
description: 'Comma-separated list of emails to send results') | ||
} | ||
|
||
stages { | ||
stage("Run E2E tests against master branch") { | ||
parallel { | ||
stage('Run Happy path tests') { | ||
steps { | ||
build job: 'basic-MultiUser-Che-check-e2e-tests-against-k8s', | ||
parameters: [ | ||
string(name: 'cheImageRepo', | ||
value: 'maxura/che-server'), | ||
|
||
string(name: 'cheImageTag', | ||
value: 'master'), | ||
|
||
booleanParam(name: 'buildChe', | ||
value: true), | ||
|
||
string(name: 'ghprbSourceBranch', | ||
value: 'master'), | ||
|
||
string(name: 'ghprbPullId', | ||
value: ''), | ||
|
||
string(name: 'e2eTestToRun', | ||
value: 'test-happy-path'), | ||
|
||
string(name: 'testWorkspaceDevfileUrl', | ||
value: 'https://raw.githubusercontent.com/eclipse/che/master/tests/e2e/files/happy-path/happy-path-workspace.yaml'), | ||
|
||
text(name: 'customResourceFileContent', | ||
value: ''), | ||
|
||
booleanParam(name: 'createTestWorkspace', | ||
value: true) | ||
] | ||
} | ||
} | ||
|
||
stage('Run Vert.x tests') { | ||
steps { | ||
build job: 'basic-MultiUser-Che-check-e2e-tests-against-k8s', | ||
parameters: [ | ||
string(name: 'cheImageRepo', | ||
value: 'maxura/che-server'), | ||
|
||
string(name: 'cheImageTag', | ||
value: 'master'), | ||
|
||
booleanParam(name: 'buildChe', | ||
value: true), | ||
|
||
string(name: 'ghprbSourceBranch', | ||
value: 'master'), | ||
|
||
string(name: 'ghprbPullId', | ||
value: ''), | ||
|
||
string(name: 'e2eTestToRun', | ||
value: 'test-java-vertx'), | ||
|
||
string(name: 'testWorkspaceDevfileUrl', | ||
value: ''), | ||
|
||
text(name: 'customResourceFileContent', | ||
value: ''), | ||
|
||
booleanParam(name: 'createTestWorkspace', | ||
value: false) | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
post { | ||
failure { | ||
script { | ||
if (emails != "") { | ||
mail to: emails, | ||
subject: "Jenkins Job $currentBuild.fullDisplayName has failed.", | ||
body: "Build $currentBuild.absoluteUrl has failed." | ||
} | ||
} | ||
} | ||
} | ||
} |
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,104 @@ | ||
pipeline { | ||
agent { label 'rhel7-8gb' } | ||
|
||
options { | ||
timestamps() | ||
timeout(time: 2, unit: 'HOURS') | ||
buildDiscarder(logRotator(artifactDaysToKeepStr: '', | ||
artifactNumToKeepStr: '', daysToKeepStr: '60', numToKeepStr: '30')) | ||
} | ||
|
||
triggers { cron("@midnight") } | ||
|
||
parameters { | ||
string(name: 'emails', | ||
defaultValue: '[email protected]', | ||
description: 'Comma-separated list of emails to send results') | ||
} | ||
|
||
stages { | ||
stage("Run E2E tests") { | ||
parallel { | ||
stage('Run Happy path tests against nightly build') { | ||
steps { | ||
build job: 'basic-MultiUser-Che-check-e2e-tests-against-k8s', | ||
parameters: [ | ||
string(name: 'cheImageRepo', | ||
value: 'eclipse/che-server'), | ||
|
||
string(name: 'cheImageTag', | ||
value: 'nightly'), | ||
|
||
booleanParam(name: 'buildChe', | ||
value: false), | ||
|
||
string(name: 'ghprbSourceBranch', | ||
value: 'master'), | ||
|
||
string(name: 'ghprbPullId', | ||
value: ''), | ||
|
||
string(name: 'e2eTestToRun', | ||
value: 'test-happy-path'), | ||
|
||
string(name: 'testWorkspaceDevfileUrl', | ||
value: 'https://raw.githubusercontent.com/eclipse/che/master/tests/e2e/files/happy-path/happy-path-workspace.yaml'), | ||
|
||
text(name: 'customResourceFileContent', | ||
value: ''), | ||
|
||
booleanParam(name: 'createTestWorkspace', | ||
value: true) | ||
] | ||
} | ||
} | ||
|
||
stage('Run Vert.x tests against nightly build') { | ||
steps { | ||
build job: 'basic-MultiUser-Che-check-e2e-tests-against-k8s', | ||
parameters: [ | ||
string(name: 'cheImageRepo', | ||
value: 'eclipse/che-server'), | ||
|
||
string(name: 'cheImageTag', | ||
value: 'nightly'), | ||
|
||
booleanParam(name: 'buildChe', | ||
value: false), | ||
|
||
string(name: 'ghprbSourceBranch', | ||
value: 'master'), | ||
|
||
string(name: 'ghprbPullId', | ||
value: ''), | ||
|
||
string(name: 'e2eTestToRun', | ||
value: 'test-java-vertx'), | ||
|
||
string(name: 'testWorkspaceDevfileUrl', | ||
value: ''), | ||
|
||
text(name: 'customResourceFileContent', | ||
value: ''), | ||
|
||
booleanParam(name: 'createTestWorkspace', | ||
value: false) | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
post { | ||
failure { | ||
script { | ||
if (emails != "") { | ||
mail to: emails, | ||
subject: "Jenkins Job $currentBuild.fullDisplayName has failed.", | ||
body: "Build $currentBuild.absoluteUrl has failed." | ||
} | ||
} | ||
} | ||
} | ||
} |
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
Oops, something went wrong.