Commit 314ad9d3 authored by Loïc Gouarin's avatar Loïc Gouarin
Browse files

Merge branch 'develop' into 'master'

Develop

See merge request !220
parents 1892ba09 07287b0f
Pipeline #4462 passed with stages
in 32 seconds
......@@ -627,12 +627,8 @@ def create_job_request(job_offer, debug):
"""
# Connecting to Gitlab
try:
# TODO: remove GITLAB_TOKEN variable from gitlab_config.py, revoke token and use the line below
# instead of os.gentenv()
gitlab_private_token = os.environ['GITLAB_TOKEN']
# gitlab_private_token = os.getenv('GITLAB_PRIVATE_TOKEN', GITLAB_TOKEN)
except KeyError:
gitlab_private_token = GITLAB_TOKEN
if gitlab_private_token is None:
print("[ERROR] GITLAB_PRIVATE_TOKEN environment variable not set!", file=sys.stderr)
raise
......
import os
# Gitlab configuration
GITLAB_URL = "https://gitlab.math.unistra.fr"
GITLAB_TOKEN = os.getenv("GITLAB_TOKEN")
GITLAB_TARGET_ID = 309 # groupe-calcul/website
GITLAB_TARGET_BRANCH = 'develop'
GITLAB_TARGET_BRANCH = os.getenv("OPENSHIFT_BUILD_REFERENCE", "develop")
GITLAB_SOURCE_ID = 309 # groupe-calcul/website
GITLAB_REF_BRANCH = GITLAB_TARGET_BRANCH # Head of the job branch
GITLAB_LABELS = ["Offre d'emploi"]
Supports Markdown
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