Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frontend-clients
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OZG-Cloud
app
frontend-clients
Commits
cc336f43
Commit
cc336f43
authored
2 years ago
by
OZGCloud
Browse files
Options
Downloads
Patches
Plain Diff
OZG-3420 skip scm build
parent
9718d1ac
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
goofy-client/apps/goofy-e2e/Jenkinsfile
+26
-31
26 additions, 31 deletions
goofy-client/apps/goofy-e2e/Jenkinsfile
with
26 additions
and
31 deletions
goofy-client/apps/goofy-e2e/Jenkinsfile
+
26
−
31
View file @
cc336f43
import
groovy.json.JsonOutput
def
SKIP_RUN
=
false
pipeline
{
agent
{
node
{
...
...
@@ -31,13 +33,26 @@ pipeline {
}
stages
{
stage
(
'Checkout
SCM
'
)
{
stage
(
'Checkout
build trigger
'
)
{
when
{
anyOf
{
not
{
triggeredBy
'BuildUpstreamCause'
}
not
{
triggeredBy
cause:
"UserIdCause"
}
}
steps
{
script
{
SKIP_RUN
=
true
currentBuild
.
result
=
"ABORTED"
}
}
}
stage
(
'Checkout SCM'
)
{
when
{
expression
{
!
SKIP_RUN
}
}
steps
{
script
{
FAILED_STAGE
=
env
.
STAGE_NAME
...
...
@@ -48,10 +63,7 @@ pipeline {
}
stage
(
"Clone Gitops Repo"
)
{
when
{
anyOf
{
triggeredBy
'BuildUpstreamCause'
triggeredBy
cause:
"UserIdCause"
}
expression
{
!
SKIP_RUN
}
}
steps
{
script
{
...
...
@@ -64,10 +76,7 @@ pipeline {
stage
(
"Init Default Versions"
)
{
when
{
anyOf
{
triggeredBy
'BuildUpstreamCause'
triggeredBy
cause:
"UserIdCause"
}
expression
{
!
SKIP_RUN
}
}
steps
{
script
{
...
...
@@ -82,6 +91,7 @@ pipeline {
stage
(
"Set User Versions"
)
{
when
{
expression
{
!
SKIP_RUN
}
beforeInput
true
triggeredBy
cause:
"UserIdCause"
}
...
...
@@ -106,10 +116,7 @@ pipeline {
stage
(
"Install Cypress"
)
{
when
{
anyOf
{
triggeredBy
'BuildUpstreamCause'
triggeredBy
cause:
"UserIdCause"
}
expression
{
!
SKIP_RUN
}
}
steps
{
script
{
...
...
@@ -130,10 +137,7 @@ pipeline {
stage
(
'Init k8s'
)
{
when
{
anyOf
{
triggeredBy
'BuildUpstreamCause'
triggeredBy
cause:
"UserIdCause"
}
expression
{
!
SKIP_RUN
}
}
steps
{
script
{
...
...
@@ -151,10 +155,7 @@ pipeline {
stage
(
'Rollout E2E Namespaces'
)
{
when
{
anyOf
{
triggeredBy
'BuildUpstreamCause'
triggeredBy
cause:
"UserIdCause"
}
expression
{
!
SKIP_RUN
}
}
steps
{
script
{
...
...
@@ -183,10 +184,7 @@ pipeline {
stage
(
'Run E2E-Tests'
)
{
when
{
anyOf
{
triggeredBy
'BuildUpstreamCause'
triggeredBy
cause:
"UserIdCause"
}
expression
{
!
SKIP_RUN
}
}
failFast
false
...
...
@@ -249,10 +247,7 @@ pipeline {
stage
(
'Delete E2E Namespaces'
)
{
when
{
anyOf
{
triggeredBy
'BuildUpstreamCause'
triggeredBy
cause:
"UserIdCause"
}
expression
{
!
SKIP_RUN
}
}
steps
{
script
{
...
...
@@ -701,7 +696,7 @@ Void sendFailureMessage() {
String
getFailedStage
()
{
if
(
FAILED_PARALLEL_STAGE
.
trim
())
{
return
FAILED_PARALLEL_STAGE
return
FAILED_PARALLEL_STAGE
.
trim
()
}
return
FAILED_STAGE
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment