Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
8340b0e5
Commit
8340b0e5
authored
Jul 09, 2021
by
Mark Lapierre
Committed by
Rémy Coutable
Jul 09, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Always delete release before review app deployment
parent
fcd2128c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
8 deletions
+10
-8
.gitlab/ci/review.gitlab-ci.yml
.gitlab/ci/review.gitlab-ci.yml
+4
-4
.gitlab/ci/rules.gitlab-ci.yml
.gitlab/ci/rules.gitlab-ci.yml
+1
-1
doc/development/pipelines.md
doc/development/pipelines.md
+1
-1
scripts/review_apps/review-apps.sh
scripts/review_apps/review-apps.sh
+4
-2
No files found.
.gitlab/ci/review.gitlab-ci.yml
View file @
8340b0e5
...
...
@@ -94,13 +94,13 @@ review-deploy:
before_script
:
-
*base-before_script
review-
stop-failed
-deployment
:
review-
delete
-deployment
:
extends
:
-
.review-stop-base
-
.review:rules:review-
stop-failed
-deployment
-
.review:rules:review-
delete
-deployment
stage
:
prepare
script
:
-
delete_
failed_
release
-
delete_release
review-stop
:
extends
:
...
...
@@ -108,7 +108,7 @@ review-stop:
-
.review:rules:review-stop
stage
:
post-qa
script
:
-
delete_
releas
e
-
delete_
k8s_release_namespac
e
.review-qa-base
:
extends
:
...
...
.gitlab/ci/rules.gitlab-ci.yml
View file @
8340b0e5
...
...
@@ -1180,7 +1180,7 @@
-
<<
:
*if-dot-com-gitlab-org-schedule
allow_failure
:
true
.review:rules:review-
stop-failed
-deployment:
.review:rules:review-
delete
-deployment:
rules
:
-
<<
:
*if-not-ee
when
:
never
...
...
doc/development/pipelines.md
View file @
8340b0e5
...
...
@@ -92,7 +92,7 @@ graph RL;
click 1-5 "https://app.periscopedata.com/app/gitlab/652085/Engineering-Productivity---Pipeline-Build-Durations?widget=6914312&udv=0"
1-6["setup-test-env (4 minutes)"];
click 1-6 "https://app.periscopedata.com/app/gitlab/652085/Engineering-Productivity---Pipeline-Build-Durations?widget=6914315&udv=0"
1-7["review-
stop-failed
-deployment"];
1-7["review-
delete
-deployment"];
1-8["dependency_scanning"];
1-9["qa:internal, qa:internal-as-if-foss"];
1-11["qa:selectors, qa:selectors-as-if-foss"];
...
...
scripts/review_apps/review-apps.sh
View file @
8340b0e5
...
...
@@ -48,7 +48,9 @@ function delete_release() {
return
fi
delete_k8s_release_namespace
if
deploy_exists
"
${
namespace
}
"
"
${
release
}
"
;
then
helm uninstall
--namespace
=
"
${
namespace
}
"
"
${
release
}
"
fi
}
function
delete_failed_release
()
{
...
...
@@ -66,7 +68,7 @@ function delete_failed_release() {
# Cleanup and previous installs, as FAILED and PENDING_UPGRADE will cause errors with `upgrade`
if
previous_deploy_failed
"
${
namespace
}
"
"
${
release
}
"
;
then
echoinfo
"Review App deployment in bad state, cleaning up namespace
${
release
}
"
delete_
releas
e
delete_
k8s_release_namespac
e
else
echoinfo
"Review App deployment in good state"
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment