From 64f8ae8819b6506094d5b20a427deeb87f11b76a Mon Sep 17 00:00:00 2001 From: Dmitrij Prokov Date: Fri, 28 Feb 2025 11:30:17 +0300 Subject: [PATCH] hotfix/[DO-1628] Fix branch check (!88) Reviewed-on: https://git.avroid.tech/DevOps/jenkins-pipelines/pulls/88 --- pipelines/Cloud/Apps-Backend/msg-messenger-core-api.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pipelines/Cloud/Apps-Backend/msg-messenger-core-api.groovy b/pipelines/Cloud/Apps-Backend/msg-messenger-core-api.groovy index e60ad15..79f980f 100644 --- a/pipelines/Cloud/Apps-Backend/msg-messenger-core-api.groovy +++ b/pipelines/Cloud/Apps-Backend/msg-messenger-core-api.groovy @@ -79,14 +79,14 @@ slaveTemplates.jnlp { "--build-arg PIP_INDEX_URL=${env.JENKINS_PIP_INDEX_URL} -f Dockerfile ." ) - if (publishBranch.contains(branch)) { + if (publishBranch) { buildImage.push() } } } stage('deploy application'){ - if (publishBranch.contains(branch)){ + if (publishBranch){ build job: 'Cloud/Deploy/Backend/msg-messenger-core-api-deploy', parameters: [ string(name: 'ENV', value: envBranch.find { it.value == branch }?.key ),