Skip to content

Commit

Permalink
CI: Deploy pipeline: added missing script block (#1763)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbiarnes authored Aug 16, 2023
1 parent a286988 commit 83a074b
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 83a074b

Please sign in to comment.