Skip to content
Snippets Groups Projects
Commit 3dbeefbd authored by Jonas Höppner's avatar Jonas Höppner
Browse files

CI: merge_gitlab_ci: Remove deletion extra deletion of integration branch.

parent 227bccb6
No related branches found
No related tags found
1 merge request!116CI: merge_gitlab_ci: Remove deletion extra deletion of integration branch.
Pipeline #9124 passed with stage
in 31 seconds
......@@ -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)
......
......@@ -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()
......
......@@ -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(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment