restructure jenkins test error catch again
All checks were successful
studiorailgun/Renderer/pipeline/head This commit looks good

This commit is contained in:
austin 2024-08-28 17:40:25 -04:00
parent a4e6af4896
commit 5f1b7cdc62

8
Jenkinsfile vendored
View File

@ -46,9 +46,11 @@ pipeline {
]
) {
script {
try {
sh 'mvn test -P integration'
} catch(err) {
sh 'rm -f ./testsuccess'
catchError {
sh 'mvn test -P integration && touch ./testsuccess'
}
if(!fileExists('./testsuccess')){
sh 'mvn test -P integration -DmaxLogs'
}
}