Open otusweb opened 7 years ago
Created pull request: https://github.com/peartherapeutics/bitrise-aws-device-farm-file-deploy/pull/10
Proposed robustness improvement https://github.com/peartherapeutics/bitrise-aws-device-farm-file-deploy/pull/10#issuecomment-250322523
Let's keep this open until I implement the None check(s)
Sorry, i had opened this issue with the wrong account.
when creating the upload, the JSON returned by the create-upload is not parsed, but rather the variables are extracted by using the cut command.
Instead i have used the python son parser to extract the variable:
uploadURL=$(echo $createUploadResult | python -c 'import son,sys;obj=json.load(sys.stdin);print obj["upload"]["url"]') uploadARN=$(echo $createUploadResult | python -c 'import son,sys;obj=json.load(sys.stdin);print obj["upload"]["arn"]')