Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Simon Friis Vindum
Iris
Commits
cf11af4b
Commit
cf11af4b
authored
May 28, 2021
by
Ralf Jung
Browse files
fix IRIS/STDPP handling in build-all
parent
08ea4ad2
Changes
1
Hide whitespace changes
Inline
Side-by-side
build-all
View file @
cf11af4b
...
...
@@ -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'
)
preprocess_repo_rev
(
'IRIS'
)
preprocess_repo_rev
(
'STDPP'
,
'stdpp'
)
preprocess_repo_rev
(
'IRIS'
,
'iris'
)
# Check if everything is set
if
not
"GITLAB_TOKEN"
in
os
.
environ
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment