Skip to content

Commit

Permalink
kie-issues#1151: wipeout workspace before clone (#1191)
Browse files Browse the repository at this point in the history
Co-authored-by: jstastny-cz <jan.stastny@ibm.com>
  • Loading branch information
jstastny-cz and jstastny-cz committed May 6, 2024
1 parent 304e76d commit 0362ea7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dsl/seed/jobs/seed_job_branch.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ pipelineJob("${GENERATION_BRANCH}/${JOB_NAME}") {
}
branch('${SEED_BRANCH}')
extensions {
wipeOutWorkspace()
cleanBeforeCheckout()
}
}
Expand Down Expand Up @@ -160,6 +161,7 @@ pipelineJob("${GENERATION_BRANCH}/tools/toggle-dsl-triggers") {
}
branch(Utils.getSeedBranch(this))
extensions {
wipeOutWorkspace()
cleanBeforeCheckout()
}
}
Expand Down
1 change: 1 addition & 0 deletions dsl/seed/jobs/seed_job_main.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ pipelineJob('0-seed-job') {
}
branch('${SEED_BRANCH}')
extensions {
wipeOutWorkspace()
cleanBeforeCheckout()
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ class KogitoJobTemplate {
}
branch(jobParams.git.branch)
extensions {
wipeOutWorkspace()
cleanBeforeCheckout()
if (jobParams.git.useRelativeTargetDirectory) {
relativeTargetDirectory(repository)
Expand Down Expand Up @@ -235,6 +236,7 @@ class KogitoJobTemplate {
branch(jobParams.pr.checkout_branch ?: '${sha1}')

extensions {
wipeOutWorkspace()
cleanBeforeCheckout()
if (jobParams.git.useRelativeTargetDirectory) {
relativeTargetDirectory(repository)
Expand Down

0 comments on commit 0362ea7

Please sign in to comment.