From 7c64d8abcaa7e22baf5463b10215da7b32098990 Mon Sep 17 00:00:00 2001 From: OZGCloud <ozgcloud@mgm-tp.com> Date: Tue, 26 Mar 2024 22:06:25 +0100 Subject: [PATCH] e2e limit e2e runs on branchname --- alfa-client/apps/alfa-e2e/Jenkinsfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/alfa-client/apps/alfa-e2e/Jenkinsfile b/alfa-client/apps/alfa-e2e/Jenkinsfile index db5c18de8b..8ac1c4c5e5 100644 --- a/alfa-client/apps/alfa-e2e/Jenkinsfile +++ b/alfa-client/apps/alfa-e2e/Jenkinsfile @@ -52,6 +52,18 @@ pipeline { // } //} //} + stage('Check branch') { + steps { + script { + if (env.BRANCH_NAME == 'PR-489' || isMasterBranch()) { + + } else { + echo "Branchname "+env.BRANCH_NAME+" does not match, skipping e2e tests" + SKIP_RUN = true + } + } + } + } stage('Checkout SCM') { when { expression { !SKIP_RUN } -- GitLab