summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVishal Bhoj <vishal.bhoj@linaro.org>2017-04-13 10:18:46 +0530
committerVishal Bhoj <vishal.bhoj@linaro.org>2017-04-13 04:49:32 +0000
commit38f88bd93fa1dd3043df033a24e2f8f396c5c87a (patch)
tree46895c00ee66e582eb4fca21f283e4e08f2d017a
parent42756a06b922c73ca940b8d0b3b8b50c09d9102c (diff)
downloadpost-build-lava-38f88bd93fa1dd3043df033a24e2f8f396c5c87a.tar.gz
fix typo: find right gerrit variables
Change-Id: I7d4399f2ca7990826affe970608fad6b29b696e1 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 93d9f32..14afb1b 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%%", 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%%", ""))
+ 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',