Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manually flushing maven cache during cleanup #403

Merged
merged 1 commit into from
Sep 8, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions bundle-workflow/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ pipeline {
post() {
always {
cleanWs disableDeferredWipeout: true, deleteDirs: true
sh "rm -rf ~/.m2/"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we have this in a clean_up function in this script so we can add all the common stuff that needs to be removed in one place?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's circle back and refactor the pipeline if it starts getting harder to understand, the cost to make a function hardly saves much real estate sadly

}
}
}
Expand All @@ -63,6 +64,7 @@ pipeline {
post() {
always {
cleanWs disableDeferredWipeout: true, deleteDirs: true
sh "rm -rf ~/.m2/"
}
}
}
Expand All @@ -80,6 +82,7 @@ pipeline {
post() {
always {
cleanWs disableDeferredWipeout: true, deleteDirs: true
sh "rm -rf ~/.m2/"
}
}
}
Expand Down