Skip to content
Snippets Groups Projects
Commit 8abfbca7 authored by Andrii Sosiuk's avatar Andrii Sosiuk
Browse files

YT-176 Skip projects with no permissions

  If a project have no permissions,
  it probably won't be processed in seco-ne CI pipelines.

  Exclude venv directory from version control
parent 01d6973b
No related branches found
No related tags found
1 merge request!405YT-176 retrigger job fails because of new projects without access permissions
Pipeline #137710 passed with stage
in 22 minutes and 57 seconds
......@@ -3,3 +3,4 @@
scripts/__pycache__
scripts/fng*
scripts/yocto*
venv*
#!/usr/bin/env python3
import argparse
import re
import sys
from gitlab import Gitlab, GitlabGetError
from gitlab.v4.objects import Group
......@@ -48,10 +47,8 @@ def get_integration_sources(manifest_project: str, manifest_branch: str, group:
if e.response_code == 404: # not found
pass
elif e.response_code == 403: # forbidden
sys.exit(
f"ERROR: could not get INTEGRATION variable of project "
f"{project.path_with_namespace}\n"
f"{e.error_message}"
print(
f"Warning: No permissions to the shared project {project.path_with_namespace}. Skipping it."
)
else:
raise
......
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