diff --git a/goofy-client/apps/goofy-e2e/Jenkinsfile b/goofy-client/apps/goofy-e2e/Jenkinsfile index 685b7d380730a21f273a82b8d1aa3a28e8f5d03c..e682e2941e156eb81f7e3fb2b56053a3da150535 100644 --- a/goofy-client/apps/goofy-e2e/Jenkinsfile +++ b/goofy-client/apps/goofy-e2e/Jenkinsfile @@ -31,6 +31,12 @@ pipeline { stages { stage("Clone Gitops Repo") { + when { + anyOf { + triggeredBy 'BuildUpstreamCause' + triggeredBy cause: "UserIdCause" + } + } steps { script { FAILED_STAGE = env.STAGE_NAME @@ -41,6 +47,12 @@ pipeline { } stage("Init Default Versions") { + when { + anyOf { + triggeredBy 'BuildUpstreamCause' + triggeredBy cause: "UserIdCause" + } + } steps { script { FAILED_STAGE = env.STAGE_NAME @@ -77,6 +89,12 @@ pipeline { } stage("Install Cypress") { + when { + anyOf { + triggeredBy 'BuildUpstreamCause' + triggeredBy cause: "UserIdCause" + } + } steps { script { FAILED_STAGE = env.STAGE_NAME @@ -95,6 +113,12 @@ pipeline { } stage('Init k8s') { + when { + anyOf { + triggeredBy 'BuildUpstreamCause' + triggeredBy cause: "UserIdCause" + } + } steps { script { FAILED_STAGE = env.STAGE_NAME @@ -110,6 +134,12 @@ pipeline { } stage('Rollout E2E Namespaces') { + when { + anyOf { + triggeredBy 'BuildUpstreamCause' + triggeredBy cause: "UserIdCause" + } + } steps { script { FAILED_STAGE = env.STAGE_NAME @@ -136,6 +166,12 @@ pipeline { } stage('Run E2E-Tests') { + when { + anyOf { + triggeredBy 'BuildUpstreamCause' + triggeredBy cause: "UserIdCause" + } + } failFast false parallel { @@ -196,6 +232,12 @@ pipeline { } stage('Delete E2E Namespaces') { + when { + anyOf { + triggeredBy 'BuildUpstreamCause' + triggeredBy cause: "UserIdCause" + } + } steps { script { FAILED_STAGE = env.STAGE_NAME @@ -496,6 +538,7 @@ Void waitForHealthyApplication(String bezeichner, String application) { waitForHealthyStatus(bezeichner, application) } } catch (Exception e) { + echo "waitForHealthyApplication Exception: ${e}" error("Application ${application} unhealthy") } } @@ -509,7 +552,7 @@ Boolean isApplicationHealthy(String bezeichner, String application) { } Void waitForHealthyStatus(String bezeichner, String application) { - sh "kubectl wait --for=jsonpath='{.status.health.status}'=Healthy applications/by-${bezeichner}-dev-${application} -n argocd --timeout=300s" + sh "kubectl wait --for=jsonpath='{.status.health.status}'=Healthy applications/by-${bezeichner}-dev-${application} -n argocd --timeout=360s" } Void publishE2ETestResult(String reportFolder, String reportName) {