Skip to content

Commit

Permalink
kie-issues#667: fix cleanup and settingsXml handling (#273)
Browse files Browse the repository at this point in the history
Co-authored-by: jstastny-cz <[email protected]>
  • Loading branch information
jstastny-cz and jstastny-cz authored Nov 2, 2023
1 parent 25381b9 commit bb753e6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
24 changes: 12 additions & 12 deletions .ci/jenkins/Jenkinsfile.branch
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pipeline {
agent {
label "$AGENT_LABEL"
}
options{
options {
timestamps()
}
tools {
Expand All @@ -24,7 +24,7 @@ pipeline {
stages {
stage('CleanWorkspace') {
steps {
cleanWs()
cleanWs(disableDeferredWipeout: true)
}
}
stage('clone kie-benchmarks') {
Expand All @@ -34,27 +34,27 @@ pipeline {
}
}
}
stage('create new branch'){
steps{
dir("${WORKSPACE}/${benchmarksRepo}"){
script{
stage('create new branch') {
steps {
dir("${WORKSPACE}/${benchmarksRepo}") {
script {
githubscm.createBranch(NEW_BRANCH)
}
}
}
}
stage('push new branch'){
steps{
dir("${WORKSPACE}/${benchmarksRepo}"){
script{
stage('push new branch') {
steps {
dir("${WORKSPACE}/${benchmarksRepo}") {
script {
githubscm.pushObject('origin', NEW_BRANCH)
}
}
}
}
}
post{
always{
post {
cleanup {
cleanWs()
}
}
Expand Down
6 changes: 3 additions & 3 deletions .ci/jenkins/Jenkinsfile.bump-up-version
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pipeline {
stage('Initialize') {
steps {
script {
cleanWs()
cleanWs(disableDeferredWipeout: true)

dir("${repoName}") {
deleteDir()
Expand All @@ -52,8 +52,8 @@ pipeline {
}
}
}
post{
always{
post {
cleanup {
cleanWs()
}
}
Expand Down

0 comments on commit bb753e6

Please sign in to comment.