Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Ansible CI
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KSZK
Ansible
Ansible CI
Commits
c024826a
Commit
c024826a
authored
4 years ago
by
Robotka István Adrián
Browse files
Options
Downloads
Patches
Plain Diff
setup ci path
parent
3289755b
No related branches found
No related tags found
No related merge requests found
Pipeline
#5761
passed
4 years ago
Stage: test
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+0
-7
0 additions, 7 deletions
.gitlab-ci.yml
gitlab-api-opressor/setup_ci.py
+0
-39
0 additions, 39 deletions
gitlab-api-opressor/setup_ci.py
gitlab-api-opressor/setup_projects.py
+2
-2
2 additions, 2 deletions
gitlab-api-opressor/setup_projects.py
with
2 additions
and
48 deletions
.gitlab-ci.yml
deleted
100644 → 0
+
0
−
7
View file @
3289755b
---
# Ordering stages and jobs
stages
:
-
test
#include: /job/editorconfig-check.yaml
This diff is collapsed.
Click to expand it.
gitlab-api-opressor/setup_ci.py
deleted
100644 → 0
+
0
−
39
View file @
3289755b
from
functions
import
*
def
repo_action
(
project_meta
):
setup_project
(
project_meta
)
def
update_project
(
project_meta
,
data
,
postfix
=
''
):
path
=
'
projects/
'
+
str
(
project_meta
[
'
id
'
])
+
postfix
r
=
requests
.
put
(
url
=
get_url
(
path
),
data
=
data
)
if
r
.
ok
:
print
(
"
Updated:
"
+
project_meta
[
'
name
'
])
else
:
print
(
"
ERROR:
"
+
project_meta
[
'
name
'
])
print
(
r
.
content
)
def
setup_project
(
project_meta
):
data
=
{
'
merge_method
'
:
'
rebase_merge
'
,
'
merge_requests_enabled
'
:
True
,
'
lfs_enabled
'
:
True
,
'
only_allow_merge_if_pipeline_succeeds
'
:
True
,
'
only_allow_merge_if_all_discussions_are_resolved
'
:
True
,
'
remove_source_branch_after_merge
'
:
True
,
'
issues_enabled
'
:
False
,
'
snippets_enabled
'
:
False
,
'
wiki_enabled
'
:
False
,
'
container_registry_enabled
'
:
False
,
'
shared_runners_enabled
'
:
False
,
'
auto_devops_enabled
'
:
False
}
update_project
(
project_meta
,
data
)
if
__name__
==
"
__main__
"
:
iterate_on_groups
(
repo_action
)
This diff is collapsed.
Click to expand it.
gitlab-api-opressor/setup_projects.py
+
2
−
2
View file @
c024826a
...
@@ -30,8 +30,8 @@ def setup_project(project_meta):
...
@@ -30,8 +30,8 @@ def setup_project(project_meta):
'
wiki_enabled
'
:
False
,
'
wiki_enabled
'
:
False
,
'
container_registry_enabled
'
:
False
,
'
container_registry_enabled
'
:
False
,
'
shared_runners_enabled
'
:
False
,
'
shared_runners_enabled
'
:
False
,
'
auto_devops_enabled
'
:
False
'
auto_devops_enabled
'
:
False
,
'
ci_config_path
'
:
''
'
ci_config_path
'
:
'
ci/pipeline/universal.yaml@kszk/sysadmin/ansible/ansci
'
}
}
update_project
(
project_meta
,
data
)
update_project
(
project_meta
,
data
)
...
...
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