summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVishal Bhoj <vishal.bhoj@linaro.org>2017-04-12 14:21:00 +0530
committerFathi Boudra <fathi.boudra@linaro.org>2017-04-12 10:04:15 +0000
commit4ed4b22d4d8c08896f6984a37c33463c5672c165 (patch)
treeb0c98f073e462402b1c1f505abcbebccd1e32b1d
parentab934c5c55bb22b385e77e0354cbc329c0cab749 (diff)
downloadpost-build-lava-4ed4b22d4d8c08896f6984a37c33463c5672c165.tar.gz
provide right gerrit info
Change-Id: I96803feb4fbdb2779d379a86b35935f183a63d97 Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
-rwxr-xr-xpost-build-lava.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/post-build-lava.py b/post-build-lava.py
index 19ec927..c91e855 100755
--- a/post-build-lava.py
+++ b/post-build-lava.py
@@ -295,10 +295,10 @@ def submit_job_from_url():
replace("job.json", "%%BUNDLE_STREAM%%", os.environ.get('LAVA_STREAM', '/private/team/linaro/android-daily/'))
replace("job.json", "%%WA2_JOB_NAME%%", build_number)
replace("job.json", "%%DOWNLOAD_URL%%", download_url)
- replace("job.json", "%%GERRIT_CHANGE_NUMBER%%", download_url)
- replace("job.json", "%%GERRIT_PATCHSET_NUMBER%%", download_url)
- replace("job.json", "%%GERRIT_CHANGE_URL%%", download_url)
- replace("job.json", "%%GERRIT_CHANGE_ID%%", download_url)
+ replace("job.json", "%%GERRIT_CHANGE_NUMBER%%", os.environ.get("%%GERRIT_CHANGE_NUMBER%%"))
+ replace("job.json", "%%GERRIT_PATCHSET_NUMBER%%", os.environ.get("%%GERRIT_PATCHSET_NUMBER%%"))
+ replace("job.json", "%%GERRIT_CHANGE_URL%%", os.environ.get("%%GERRIT_CHANGE_URL%%"))
+ replace("job.json", "%%GERRIT_CHANGE_ID%%", os.environ.get("%%GERRIT_CHANGE_ID%%"))
# LAVA server URL
lava_server = os.environ.get('LAVA_SERVER',