summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVishal Bhoj <vishal.bhoj@linaro.org>2017-04-11 17:40:34 +0530
committerFathi Boudra <fathi.boudra@linaro.org>2017-04-11 12:18:47 +0000
commitab934c5c55bb22b385e77e0354cbc329c0cab749 (patch)
treebca8dc496858247c12c704fabfcb15601e595d96
parent01b0e1ad105c2d1855e2e075b3458c751795d984 (diff)
downloadpost-build-lava-ab934c5c55bb22b385e77e0354cbc329c0cab749.tar.gz
android: pass gerrit info to LAVA job
Change-Id: I93f65f955a97a8a074af98fcfb328bc68be95351 Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
-rwxr-xr-xpost-build-lava.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/post-build-lava.py b/post-build-lava.py
index 41a5c3d..19ec927 100755
--- a/post-build-lava.py
+++ b/post-build-lava.py
@@ -295,6 +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)
# LAVA server URL
lava_server = os.environ.get('LAVA_SERVER',