From c551e9cd488d506d4b34bc61c82464559b1b65f3 Mon Sep 17 00:00:00 2001
From: OZGCloud <ozgcloud@mgm-tp.com>
Date: Fri, 17 Mar 2023 12:08:23 +0100
Subject: [PATCH] OZG-3420 fix e2e pipeline trigger

---
 goofy-client/apps/goofy-e2e/Jenkinsfile | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/goofy-client/apps/goofy-e2e/Jenkinsfile b/goofy-client/apps/goofy-e2e/Jenkinsfile
index fab07b9852..f410c4da98 100644
--- a/goofy-client/apps/goofy-e2e/Jenkinsfile
+++ b/goofy-client/apps/goofy-e2e/Jenkinsfile
@@ -36,10 +36,11 @@ pipeline {
         stage('Checkout build trigger') {
             when {
                 not {
-                    triggeredBy 'BuildUpstreamCause'
-                }
-                not {
-                    triggeredBy cause: "UserIdCause"
+                    anyOf {
+                        triggeredBy 'UpstreamCause'
+                        triggeredBy 'BuildUpstreamCause'
+                        triggeredBy cause: 'UserIdCause'
+                    }
                 }
             }
             steps {
-- 
GitLab