summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--post-build-report.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/post-build-report.py b/post-build-report.py
index 2343ba5..aaa4d92 100644
--- a/post-build-report.py
+++ b/post-build-report.py
@@ -161,10 +161,12 @@ if __name__ == '__main__':
art_url = os.environ.get("ART_URL", "http://localhost:8000/")
art_token = None
if urlsplit(art_url).netloc.startswith('art-reports'):
- art_token = os.environ.get("ART_TOKEN_ART_REPORTS")
+ art_token = os.environ.get("ART_TOKEN_ART_REPORTS", None)
elif urlsplit(art_url).netloc.startswith('android-qa-reports'):
- art_token = os.environ.get("ART_TOKEN_ANDROID_REPORTS")
- else:
+ art_token = os.environ.get("ART_TOKEN_ANDROID_REPORTS", None)
+
+ # we use ART_TOKEN keyword in LAVA so we check for that as well
+ if art_token is None:
art_token = os.environ.get("ART_TOKEN")
manifest = _get_manifest("./artifacts")