From 83a074b115e08aa24430b317443e11102eb238ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Biarn=C3=A9s=20Kiefer?= Date: Wed, 16 Aug 2023 09:24:03 +0200 Subject: [PATCH] CI: Deploy pipeline: added missing script block (#1763) --- .ci/jenkins/Jenkinsfile.deploy | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.ci/jenkins/Jenkinsfile.deploy b/.ci/jenkins/Jenkinsfile.deploy index 40ede679f4..e3980c0f2b 100644 --- a/.ci/jenkins/Jenkinsfile.deploy +++ b/.ci/jenkins/Jenkinsfile.deploy @@ -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') {