From aa530618eab5ddcc19614a847c98262bea02654c Mon Sep 17 00:00:00 2001 From: GiuseppeS Date: Mon, 26 May 2025 09:35:41 +0200 Subject: [PATCH] Aggiornato Jenkinsfile --- build/Jenkinsfile.groovy | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/build/Jenkinsfile.groovy b/build/Jenkinsfile.groovy index 40557a0653..38618e58d3 100644 --- a/build/Jenkinsfile.groovy +++ b/build/Jenkinsfile.groovy @@ -134,7 +134,15 @@ sleep 10''', execTimeout: 120000, flatten: false, makeEmptyDirs: false, noDefaul // Entra nella directory della repository di destinazione dir('IntegryManagementSystemTSModules') { - bat "git checkout -b ${env.GIT_BRANCH}" + if(env.GIT_BRANCH != "master") { + // Crea un nuovo branch se non รจ master o develop + bat "git checkout -b ${env.GIT_BRANCH}" + } else { + // Altrimenti, torna al branch master o develop + bat "git checkout ${env.GIT_BRANCH}" + } + + //bat "git checkout -b ${env.GIT_BRANCH}" bat "git pull origin ${env.GIT_BRANCH}" // Copia i file .ts nella repository di destinazione