disable auto devops pipeline when creating repos

parent faa4045f
...@@ -59,7 +59,7 @@ class GitlabClassHelper: ...@@ -59,7 +59,7 @@ class GitlabClassHelper:
""" """
Create a repository in the group with id Create a repository in the group with id
""" """
url = self.path + '/projects?name=%s&namespace_id=%d' % (repo_name, group_id) url = self.path + '/projects?name=%s&namespace_id=%d&auto_devops_enabled=false' % (repo_name, group_id)
resp = requests.post(url, headers=self.headers) resp = requests.post(url, headers=self.headers)
if resp.ok: if resp.ok:
print('Created project "%s" in "%s".' % (repo_name, group_name)) print('Created project "%s" in "%s".' % (repo_name, group_name))
...@@ -231,5 +231,3 @@ class GitlabClassHelper: ...@@ -231,5 +231,3 @@ class GitlabClassHelper:
path_to_repo = os.path.join(local_path, repo) path_to_repo = os.path.join(local_path, repo)
self.push_git_repository_content_to_project(path_to_repo, repo_id) self.push_git_repository_content_to_project(path_to_repo, repo_id)
print('Pushed the repository "%s" to "%s"' % (path_to_repo, repo)) print('Pushed the repository "%s" to "%s"' % (path_to_repo, repo))
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