Commit cf11af4b authored by Ralf Jung's avatar Ralf Jung
Browse files

fix IRIS/STDPP handling in build-all

parent 08ea4ad2
......@@ -11,14 +11,13 @@ import requests
# Pre-processing: we support setting `PROJECT` to `user:branch` (GitLab MR syntax),
# which will set `PROJECT_REPO` and `PROJECT_REV` automatically.
def preprocess_repo_rev(project):
var = project.upper()
def preprocess_repo_rev(var, project):
if var in os.environ:
(repo, rev) = os.environ[var].split(':')
os.environ[var+"_REPO"] = repo + "/" + project
os.environ[var+"_REV"] = rev
preprocess_repo_rev('STDPP', 'stdpp')
preprocess_repo_rev('IRIS', 'iris')
# Check if everything is set
if not "GITLAB_TOKEN" in os.environ:
Markdown is supported
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