Skip to content

Commit

Permalink
Stop buildPlugin cleanup error log on ACI
Browse files Browse the repository at this point in the history
ACI has linux label but not docker

Currently the cleanup script is running on ACI and failing, exception is ignored but it is red in blue ocean which confused me for a bit before I scrolled up and saw the actual build failure
  • Loading branch information
timja authored Aug 15, 2019
1 parent 53f30fa commit 04036a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vars/buildPlugin.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def call(Map params = [:]) {
} finally {
deleteDir()

if (isUnix() || hasDockerLabel()) {
if (hasDockerLabel()) {
sh 'docker system prune --force --all || echo "Failed to cleanup docker images"'
}
}
Expand Down

0 comments on commit 04036a6

Please sign in to comment.