Loading tools/job_labels/job_labels.py +6 −6 Original line number Diff line number Diff line Loading @@ -3,10 +3,11 @@ # API documentation: https://docs.gitlab.com/ee/api/labels.html # import requests import logging import sys from urllib.parse import quote, urlencode from os import getenv, listdir import requests # API Variables PROJECT_NAME = "r2devops/hub" Loading Loading @@ -124,7 +125,6 @@ if __name__ == "__main__": ] ) jobs = listdir(JOBS_DIR) for job in jobs: job_label = JOBS_SCOPE_LABEL + job Loading @@ -137,4 +137,4 @@ if __name__ == "__main__": create_label(PROJECT_NAME, job_label) else: logging.error("Not Authorized, verify the API_TOKEN environment variable in the gitlab project") exit(1) No newline at end of file sys.exit(1) Loading
tools/job_labels/job_labels.py +6 −6 Original line number Diff line number Diff line Loading @@ -3,10 +3,11 @@ # API documentation: https://docs.gitlab.com/ee/api/labels.html # import requests import logging import sys from urllib.parse import quote, urlencode from os import getenv, listdir import requests # API Variables PROJECT_NAME = "r2devops/hub" Loading Loading @@ -124,7 +125,6 @@ if __name__ == "__main__": ] ) jobs = listdir(JOBS_DIR) for job in jobs: job_label = JOBS_SCOPE_LABEL + job Loading @@ -137,4 +137,4 @@ if __name__ == "__main__": create_label(PROJECT_NAME, job_label) else: logging.error("Not Authorized, verify the API_TOKEN environment variable in the gitlab project") exit(1) No newline at end of file sys.exit(1)