Skip to content
Snippets Groups Projects
Commit b5135828 authored by Walter Lozano's avatar Walter Lozano
Browse files

import-debian-package: Create repository with CI disabled


When importing Debian packages it is possible to find cases where packages
already provided an upstream Gitlab CI configuration. In such cases,
when packages are imported Gitlab will try to run CI which has no sense.

For properly handle this scenario, create new repositories with CI
disabled, and let gitlab rulez to update the settings once the package
is fully imported.

Signed-off-by: default avatarWalter Lozano <walter.lozano@collabora.com>
parent 0cfeb606
No related branches found
No related tags found
3 merge requests!53Release apertis-dev-tools version 0.2023.2,!52Merge v2024dev1 into v2024dev2,!50import-debian-package: Create repository with CI disabled
......@@ -63,7 +63,7 @@ class GitlabWrapper:
return self.gl.groups.list(search=name)[0].id
def create_project(self, name):
return self.gl.projects.create({'name': name, 'namespace_id': self.get_group(APERTIS_GITLAB_GROUP), 'visibility': 'public'})
return self.gl.projects.create({'name': name, 'namespace_id': self.get_group(APERTIS_GITLAB_GROUP), 'visibility': 'public', 'builds_access_level': 'disabled'})
def gbp_import_dsc(*args, **kwargs):
logging.debug('gbp import-dsc %r', args)
......
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