From 88e7f2870f78f3b8829dd6a916383897d4f29389 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Perdomo?= Date: Mon, 29 Jan 2024 16:48:26 +0100 Subject: [PATCH] IM-98 Fix syntax for conditional deploy --- Jenkinsfile | 4 +--- Jenkinsfile.withParams | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3b346c34d..43c7a58d1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -96,9 +96,7 @@ pipeline { stage('Maven deploy') { when { - branch { - anyOf { branch 'develop'; branch 'master' } - } + anyOf { branch 'develop'; branch 'master' } } steps { configFileProvider([configFile(fileId: '1f5f24a2-9839-4194-b2ad-0613279f9fba', variable: 'MAVEN_SETTINGS_XML')]) { diff --git a/Jenkinsfile.withParams b/Jenkinsfile.withParams index 47a3d5240..e044ad99f 100644 --- a/Jenkinsfile.withParams +++ b/Jenkinsfile.withParams @@ -166,9 +166,7 @@ pipeline { stage('Maven deploy') { when { - branch { - anyOf { branch 'develop'; branch 'master' } - } + anyOf { branch 'develop'; branch 'master' } } steps { configFileProvider([configFile(fileId: '1f5f24a2-9839-4194-b2ad-0613279f9fba', variable: 'MAVEN_SETTINGS_XML')]) {