Commit 4b671061 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Merge branch '205420-make-review-deploy-depend-on-review-build-cng' into 'master'

Make 'review-deploy' depend on 'review-build-cng' with 'needs'

Closes #205420

See merge request gitlab-org/gitlab!25137
parents 14351e8f 2ff76489
...@@ -126,7 +126,6 @@ review-build-cng: ...@@ -126,7 +126,6 @@ review-build-cng:
- .default-tags - .default-tags
- .default-retry - .default-retry
image: registry.gitlab.com/gitlab-org/gitlab-build-images:gitlab-charts-build-base image: registry.gitlab.com/gitlab-org/gitlab-build-images:gitlab-charts-build-base
dependencies: []
variables: variables:
HOST_SUFFIX: "${CI_ENVIRONMENT_SLUG}" HOST_SUFFIX: "${CI_ENVIRONMENT_SLUG}"
DOMAIN: "-${CI_ENVIRONMENT_SLUG}.${REVIEW_APPS_DOMAIN}" DOMAIN: "-${CI_ENVIRONMENT_SLUG}.${REVIEW_APPS_DOMAIN}"
...@@ -142,6 +141,9 @@ review-deploy: ...@@ -142,6 +141,9 @@ review-deploy:
- .review-workflow-base - .review-workflow-base
- .review:rules:mr-and-schedule - .review:rules:mr-and-schedule
stage: review stage: review
needs:
- job: review-build-cng
artifacts: false
allow_failure: true allow_failure: true
before_script: before_script:
- '[[ ! -d "ee/" ]] || export GITLAB_EDITION="ee"' - '[[ ! -d "ee/" ]] || export GITLAB_EDITION="ee"'
...@@ -169,6 +171,7 @@ review-deploy: ...@@ -169,6 +171,7 @@ review-deploy:
extends: .review-workflow-base extends: .review-workflow-base
environment: environment:
action: stop action: stop
dependencies: []
variables: variables:
# We're cloning the repo instead of downloading the script for now # We're cloning the repo instead of downloading the script for now
# because some repos are private and CI_JOB_TOKEN cannot access files. # because some repos are private and CI_JOB_TOKEN cannot access files.
......
...@@ -253,7 +253,6 @@ graph RL; ...@@ -253,7 +253,6 @@ graph RL;
E[review-build-cng]; E[review-build-cng];
F[build-qa-image]; F[build-qa-image];
G[review-deploy]; G[review-deploy];
G2["schedule:review-deploy<br/>(master only)"];
I["karma, jest, webpack-dev-server, static-analysis"]; I["karma, jest, webpack-dev-server, static-analysis"];
I2["karma-foss, jest-foss<br/>(EE default refs only)"]; I2["karma-foss, jest-foss<br/>(EE default refs only)"];
J["compile-assets pull-push-cache<br/>(master only)"]; J["compile-assets pull-push-cache<br/>(master only)"];
...@@ -297,19 +296,16 @@ subgraph "`post-test` stage" ...@@ -297,19 +296,16 @@ subgraph "`post-test` stage"
subgraph "`review-prepare` stage" subgraph "`review-prepare` stage"
E -.-> |needs| C; E -.-> |needs| C;
E2["schedule:review-build-cng<br/>(master schedule only)"] -.-> |needs| C;
end end
subgraph "`review` stage" subgraph "`review` stage"
G --> |happens after| E G -.-> |needs| E
G2 --> |happens after| E2
end end
subgraph "`qa` stage" subgraph "`qa` stage"
Q -.-> |needs| C; Q -.-> |needs| C;
Q -.-> |needs| F; Q -.-> |needs| F;
QA1["review-qa-smoke, review-qa-all, review-performance, dast"] -.-> |needs and depends on| G; QA1["review-qa-smoke, review-qa-all, review-performance, dast"] -.-> |needs| G;
QA2["schedule:review-performance<br/>(master only)"] -.-> |needs and depends on| G2;
end end
subgraph "`post-qa` stage" subgraph "`post-qa` stage"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment