Jenkins: Use modern error handling

This commit is contained in:
Tobias Gruetzmacher 2019-07-14 12:57:06 +02:00
parent 98d217f686
commit 7bb0605329

5
Jenkinsfile vendored
View file

@ -33,11 +33,8 @@ pys.each { py ->
git fetch --tags git fetch --tags
''' '''
try { warnError('tox failed') {
sh "tox -e $py.tox" sh "tox -e $py.tox"
} catch (err) {
echo "tox failed: ${err}"
currentBuild.result = 'UNSTABLE'
} }
if (py.main) { if (py.main) {