mirror of
https://github.com/corda/corda.git
synced 2025-02-20 17:33:15 +00:00
NOTICK: allow to skip executing all tests for a release (#7001)
* backported from emergency releases for log4j updates * adds a build parameter, which control if tests should be run or not, default is `true`
This commit is contained in:
parent
db0e45146a
commit
9a7308f954
18
.ci/dev/regression/Jenkinsfile
vendored
18
.ci/dev/regression/Jenkinsfile
vendored
@ -65,6 +65,7 @@ pipeline {
|
||||
|
||||
parameters {
|
||||
choice choices: nexusIqStageChoices, description: 'NexusIQ stage for code evaluation', name: 'nexusIqStage'
|
||||
booleanParam defaultValue: true, description: 'Run tests during this build?', name: 'DO_TEST'
|
||||
}
|
||||
|
||||
/*
|
||||
@ -91,6 +92,9 @@ pipeline {
|
||||
}
|
||||
|
||||
stage('Stash') {
|
||||
when {
|
||||
expression { params.DO_TEST }
|
||||
}
|
||||
steps {
|
||||
stash name: 'compiled', useDefaultExcludes: false
|
||||
}
|
||||
@ -115,6 +119,10 @@ pipeline {
|
||||
}
|
||||
|
||||
stage('All Tests') {
|
||||
when {
|
||||
expression { params.DO_TEST }
|
||||
beforeAgent true
|
||||
}
|
||||
parallel {
|
||||
stage('Another agent') {
|
||||
agent {
|
||||
@ -297,10 +305,12 @@ pipeline {
|
||||
always {
|
||||
script {
|
||||
try {
|
||||
unstash 'allure-input'
|
||||
allure includeProperties: false,
|
||||
jdk: '',
|
||||
results: [[path: '**/allure-input']]
|
||||
if (params.DO_TEST) {
|
||||
unstash 'allure-input'
|
||||
allure includeProperties: false,
|
||||
jdk: '',
|
||||
results: [[path: '**/allure-input']]
|
||||
}
|
||||
} catch (err) {
|
||||
echo("Allure report generation failed: $err")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user