Skip to content

Commit

Permalink
Seems git clean can fail even when the workspace is dirty; let us jus…
Browse files Browse the repository at this point in the history
…t try rm -r
  • Loading branch information
jglick committed Sep 17, 2020
1 parent fd8004d commit 05d8b17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ for (int i = 0; i < platforms.size(); ++i) {
node(label) {
stage('Checkout') {
if (isUnix()) { // have to clean the workspace as root
sh 'docker run --rm -v $(pwd):/src -w /src maven:3.6.0-jdk-8 git clean -fdx || :'
sh 'docker run --rm -v $(pwd):/src -w /src maven:3.6.0-jdk-8 sh -c "rm -rf * .[a-zA-Z]*" || :'
}
checkout scm
}
Expand Down

0 comments on commit 05d8b17

Please sign in to comment.