mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
Actually catch the exception when we fail
This should actually cause builds to fail when any part in the try block fails. We still delete instances and try junit rendering, but if things fail then they get marked on github as failed.
This commit is contained in:
parent
1c8def9641
commit
c88a81d059
@ -54,6 +54,8 @@ timeout(time: 6, unit: 'HOURS') {
|
|||||||
archiveArtifacts artifacts: 'artifacts/logs/salt-runtests.log'
|
archiveArtifacts artifacts: 'artifacts/logs/salt-runtests.log'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
currentBuild.result = 'FAILURE'
|
||||||
} finally {
|
} finally {
|
||||||
try {
|
try {
|
||||||
junit 'artifacts/xml-unittests-output/*.xml'
|
junit 'artifacts/xml-unittests-output/*.xml'
|
||||||
|
@ -54,6 +54,8 @@ timeout(time: 6, unit: 'HOURS') {
|
|||||||
archiveArtifacts artifacts: 'artifacts/logs/salt-runtests.log'
|
archiveArtifacts artifacts: 'artifacts/logs/salt-runtests.log'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
currentBuild.result = 'FAILURE'
|
||||||
} finally {
|
} finally {
|
||||||
try {
|
try {
|
||||||
junit 'artifacts/xml-unittests-output/*.xml'
|
junit 'artifacts/xml-unittests-output/*.xml'
|
||||||
|
@ -54,6 +54,8 @@ timeout(time: 6, unit: 'HOURS') {
|
|||||||
archiveArtifacts artifacts: 'artifacts/logs/salt-runtests.log'
|
archiveArtifacts artifacts: 'artifacts/logs/salt-runtests.log'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
currentBuild.result = 'FAILURE'
|
||||||
} finally {
|
} finally {
|
||||||
try {
|
try {
|
||||||
junit 'artifacts/xml-unittests-output/*.xml'
|
junit 'artifacts/xml-unittests-output/*.xml'
|
||||||
|
@ -54,6 +54,8 @@ timeout(time: 6, unit: 'HOURS') {
|
|||||||
archiveArtifacts artifacts: 'artifacts/logs/salt-runtests.log'
|
archiveArtifacts artifacts: 'artifacts/logs/salt-runtests.log'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
currentBuild.result = 'FAILURE'
|
||||||
} finally {
|
} finally {
|
||||||
try {
|
try {
|
||||||
junit 'artifacts/xml-unittests-output/*.xml'
|
junit 'artifacts/xml-unittests-output/*.xml'
|
||||||
|
@ -54,6 +54,8 @@ timeout(time: 6, unit: 'HOURS') {
|
|||||||
archiveArtifacts artifacts: 'artifacts/logs/salt-runtests.log'
|
archiveArtifacts artifacts: 'artifacts/logs/salt-runtests.log'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
currentBuild.result = 'FAILURE'
|
||||||
} finally {
|
} finally {
|
||||||
try {
|
try {
|
||||||
junit 'artifacts/xml-unittests-output/*.xml'
|
junit 'artifacts/xml-unittests-output/*.xml'
|
||||||
|
@ -54,6 +54,8 @@ timeout(time: 6, unit: 'HOURS') {
|
|||||||
archiveArtifacts artifacts: 'artifacts/logs/salt-runtests.log'
|
archiveArtifacts artifacts: 'artifacts/logs/salt-runtests.log'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
currentBuild.result = 'FAILURE'
|
||||||
} finally {
|
} finally {
|
||||||
try {
|
try {
|
||||||
junit 'artifacts/xml-unittests-output/*.xml'
|
junit 'artifacts/xml-unittests-output/*.xml'
|
||||||
|
Loading…
Reference in New Issue
Block a user