mirror of https://github.com/jenkinsci/jenkins.git
ci: Set tests check to pending when maven build starts (#9125)
This commit is contained in:
parent
fba751d638
commit
fe60facf91
|
@ -118,6 +118,7 @@ axes.values().combinations {
|
||||||
}
|
}
|
||||||
mavenOptions.add(0, "-Dsurefire.excludesFile=${excludesFile}")
|
mavenOptions.add(0, "-Dsurefire.excludesFile=${excludesFile}")
|
||||||
}
|
}
|
||||||
|
withChecks(name: 'Tests', includeStage: true) {
|
||||||
realtimeJUnit(healthScaleFactor: 20.0, testResults: '*/target/surefire-reports/*.xml') {
|
realtimeJUnit(healthScaleFactor: 20.0, testResults: '*/target/surefire-reports/*.xml') {
|
||||||
infra.runMaven(mavenOptions, jdk)
|
infra.runMaven(mavenOptions, jdk)
|
||||||
if (isUnix()) {
|
if (isUnix()) {
|
||||||
|
@ -126,6 +127,7 @@ axes.values().combinations {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Once we've built, archive the artifacts and the test results.
|
// Once we've built, archive the artifacts and the test results.
|
||||||
stage("${platform.capitalize()} - JDK ${jdk} - Publish") {
|
stage("${platform.capitalize()} - JDK ${jdk} - Publish") {
|
||||||
|
@ -219,10 +221,13 @@ athAxes.values().combinations {
|
||||||
// Just to be safe
|
// Just to be safe
|
||||||
deleteDir()
|
deleteDir()
|
||||||
checkout scm
|
checkout scm
|
||||||
|
|
||||||
|
withChecks(name: 'Tests', includeStage: true) {
|
||||||
infra.withArtifactCachingProxy {
|
infra.withArtifactCachingProxy {
|
||||||
sh "bash ath.sh ${jdk} ${browser}"
|
sh "bash ath.sh ${jdk} ${browser}"
|
||||||
}
|
}
|
||||||
junit testResults: 'target/ath-reports/TEST-*.xml', testDataPublishers: [[$class: 'AttachmentPublisher']]
|
junit testResults: 'target/ath-reports/TEST-*.xml', testDataPublishers: [[$class: 'AttachmentPublisher']]
|
||||||
|
}
|
||||||
/*
|
/*
|
||||||
* Currently disabled, as the fact that this is a manually created subset will confuse Launchable,
|
* Currently disabled, as the fact that this is a manually created subset will confuse Launchable,
|
||||||
* which expects this to be a full build. When we implement subsetting, this can be re-enabled using
|
* which expects this to be a full build. When we implement subsetting, this can be re-enabled using
|
||||||
|
|
Loading…
Reference in New Issue