Jenkins: Use modern error handling
This commit is contained in:
parent
98d217f686
commit
7bb0605329
1 changed files with 1 additions and 4 deletions
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue