Skip to content

Commit

Permalink
added missing script block
Browse files Browse the repository at this point in the history
  • Loading branch information
mbiarnes committed Aug 15, 2023
1 parent c8c8ac7 commit 50f0271
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .ci/jenkins/Jenkinsfile.deploy
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,14 @@ pipeline {
expression { return isRelease() || isCreatePr() }
}
steps {
dir(getRepoName()) {
if (githubscm.isBranchExist('origin',getPRBranch())) {
githubscm.removeRemoteBranch('origin', getPRBranch())
script {
dir(getRepoName()) {
if (githubscm.isBranchExist('origin',getPRBranch())) {
githubscm.removeRemoteBranch('origin', getPRBranch())
}
githubscm.createBranch(getPRBranch())
}
githubscm.createBranch(getPRBranch())
}
}
}
}
stage('Update project version') {
Expand Down

0 comments on commit 50f0271

Please sign in to comment.