summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVishal Bhoj <vishal.bhoj@linaro.org>2017-04-12 17:04:40 +0530
committerVishal Bhoj <vishal.bhoj@linaro.org>2017-04-12 19:31:23 +0530
commit98a2aaab4bfe2a6f78fb417eb735bd89c7833c38 (patch)
tree319d00105392847d2efd400dc6fafe658bd4b1b5
parent671c3f593cb351928cbadbe9ef33bbb7b04d6308 (diff)
check for ART_TOKEN for submission in lava v2
We are using ART_TOKEN keyword for token in LAVA v2 so we check for that env variable before exiting. Change-Id: Ie1b21a225ba26e33bca8565bc8d5bb454fb3799d Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
-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")