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 { script {
try { sh 'rm -f ./testsuccess'
sh 'mvn test -P integration' catchError {
} catch(err) { sh 'mvn test -P integration && touch ./testsuccess'
}
if(!fileExists('./testsuccess')){
sh 'mvn test -P integration -DmaxLogs' sh 'mvn test -P integration -DmaxLogs'
} }
} }