Skip to content
Snippets Groups Projects
Commit cf11af4b authored by Ralf Jung's avatar Ralf Jung
Browse files

fix IRIS/STDPP handling in build-all

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