Skip to content

Commit

Permalink
[CI] use try to avoid a global abort (#27080)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v authored Jul 28, 2021
1 parent 084ba4e commit a4e5a73
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ def tearDown() {
*/
def fixPermissions(location) {
if(isUnix()) {
catchError(message: 'There were some failures when fixing the permissions', buildResult: 'SUCCESS', stageResult: 'SUCCESS') {
try {
timeout(5) {
sh(label: 'Fix permissions', script: """#!/usr/bin/env bash
set +x
Expand All @@ -710,6 +710,8 @@ def fixPermissions(location) {
docker_setup
script/fix_permissions.sh ${location}""", returnStatus: true)
}
} catch (Throwable e) {
echo "There were some failures when fixing the permissions. ${e.toString()}"
}
}
}
Expand Down

0 comments on commit a4e5a73

Please sign in to comment.