Skip to content
Snippets Groups Projects

get_integration_sources: check if CI is enabled

Merged Tim Jaacks requested to merge check-if-ci-enabled into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -27,7 +27,7 @@ def get_integration_sources(manifest_project: str, manifest_branch: str, group:
@@ -27,7 +27,7 @@ def get_integration_sources(manifest_project: str, manifest_branch: str, group:
for project in group.projects.list():
for project in group.projects.list():
try:
try:
project = gitlab.projects.get(project.id)
project = gitlab.projects.get(project.id)
if not project.archived:
if not project.archived and project.jobs_enabled:
integrations = project.variables.get("INTEGRATION").value
integrations = project.variables.get("INTEGRATION").value
for integration in integrations.splitlines():
for integration in integrations.splitlines():
if re.search(regex, integration):
if re.search(regex, integration):
Loading