Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
gitlab-ci
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
4
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SECO Northern Europe
Yocto
infrastructure
gitlab-ci
Commits
3dbeefbd
Commit
3dbeefbd
authored
2 years ago
by
Jonas Höppner
Browse files
Options
Downloads
Patches
Plain Diff
CI: merge_gitlab_ci: Remove deletion extra deletion of integration branch.
parent
227bccb6
No related branches found
Branches containing commit
No related tags found
1 merge request
!116
CI: merge_gitlab_ci: Remove deletion extra deletion of integration branch.
Pipeline
#9124
passed with stage
Stage:
in 31 seconds
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
common.py
+1
-1
1 addition, 1 deletion
common.py
merge_gitlab_ci.py
+0
-14
0 additions, 14 deletions
merge_gitlab_ci.py
merge_into_manifest.py
+1
-0
1 addition, 0 deletions
merge_into_manifest.py
with
2 additions
and
15 deletions
common.py
+
1
−
1
View file @
3dbeefbd
...
...
@@ -23,7 +23,7 @@ def integration_branch_name(project_name, branch_name):
def
is_gitlab_ci_integration_branch
(
branch_name
):
gitlab_ci_integration_branch
=
"
integrate/
.
gitlab_ci
"
gitlab_ci_integration_branch
=
"
integrate/gitlab_ci
"
return
branch_name
.
startswith
(
gitlab_ci_integration_branch
)
...
...
This diff is collapsed.
Click to expand it.
merge_gitlab_ci.py
+
0
−
14
View file @
3dbeefbd
...
...
@@ -156,11 +156,6 @@ def main():
# deploy_gitlab_ci again to create a new integration
# commit or make sure the change is already integrated.
# Store for later usage:
if
p
==
args
.
project
:
manifest_project
=
project
manifest_integration_mr
=
mr
print
(
"
Merge {}!{}: {}
"
.
format
(
project
.
name
,
mr
.
iid
,
mr
.
title
))
# Wait until GitLab has checked merge status
common
.
wait_until_merge_status_is_set
(
project
,
mr
)
...
...
@@ -194,15 +189,6 @@ def main():
print
(
"
{}
"
.
format
(
p2
))
sys
.
exit
()
# Delete args.project (manifests) integration branch
# (skipped the deletion during the merge request merge before)
integration_branch
=
manifest_project
.
branches
.
get
(
manifest_integration_mr
.
source_branch
)
manifest_project
.
branches
.
delete
(
integration_branch
.
get_id
(),
retry_transient_errors
=
True
)
print
(
"
Successfully merged
"
)
exit
()
...
...
This diff is collapsed.
Click to expand it.
merge_into_manifest.py
+
1
−
0
View file @
3dbeefbd
...
...
@@ -42,6 +42,7 @@ def merge_into_manifest(
# Get original branch for commit
original_branch
=
source_mr
.
source_branch
logging
.
debug
(
"
Original branch %s
"
,
original_branch
)
if
common
.
is_gitlab_ci_integration_branch
(
original_branch
):
print
(
...
...
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