Error handling for job cost script 23/62923/5
authorZack Williams <zdw@opennetworking.org>
Thu, 23 Jan 2020 18:42:17 +0000 (11:42 -0700)
committerZack Williams <zdw@opennetworking.org>
Wed, 29 Jan 2020 16:28:29 +0000 (09:28 -0700)
commit2a60d75d8cf3b772871fd4af3efa907b60622873
tree51ead0716fc840710b7aa3643c3e3b826f96070f
parent105796516adb521cd606f15737d43036eff389e3
Error handling for job cost script

- Exit early if on AWS, where job cost calculation isn't supported
- Error handling for vexhost API - may return a 404 which doesn't parse
  properly in jq, which would fails an otherwise working build.
- Report correct name when script is run.

Change-Id: I375b4a16588b1ab12e4aa7da0e37b351ed52f64c
Signed-off-by: Zack Williams <zdw@opennetworking.org>
shell/job-cost.sh