Skip to content

Commit

Permalink
fix(Jenkins): cleanWs() -> cleanBeforeCheckout()
Browse files Browse the repository at this point in the history
  • Loading branch information
lprimak committed Mar 15, 2023
1 parent 36fa309 commit 55e62ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .jenkins.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ pipeline {
stage('Cleanup') {
steps {
echo 'Cleaning up the workspace'
cleanWs()
cleanBeforeCheckout()
}
}

Expand Down Expand Up @@ -160,7 +160,7 @@ Check console output at "<a href="${env.BUILD_URL}">${env.JOB_NAME} [${env.BRANC
success {
// Cleanup the build directory if the build was successful
// (in this cae we probably don't have to do any post-build analysis)
cleanWs()
cleanBeforeCheckout()
script {
if (deployableBranch
&& (currentBuild.previousBuild != null) && (currentBuild.previousBuild.result != 'SUCCESS')) {
Expand Down

0 comments on commit 55e62ac

Please sign in to comment.