Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions buildscripts/kokoro/android.sh
Original file line number Diff line number Diff line change
Expand Up @@ -126,15 +126,18 @@ fi

# Update the statuses with the deltas

set +x
gsutil cp gs://grpc-testing-secrets/github_credentials/oauth_token.txt ~/

desc="New DEX reference count: $(printf "%'d" "$new_dex_count") (delta: $(printf "%'d" "$dex_count_delta"))"
echo "Setting status: $desc"
curl -f -s -X POST -H "Content-Type: application/json" \
-H "Authorization: token $(cat ~/oauth_token.txt | tr -d '\n')" \
-d '{"state": "success", "context": "android/dex_diff", "description": "'"${desc}"'"}' \
"https://api.github.com/repos/grpc/grpc-java/statuses/${KOKORO_GITHUB_PULL_REQUEST_COMMIT}"

desc="New APK size in bytes: $(printf "%'d" "$new_apk_size") (delta: $(printf "%'d" "$apk_size_delta"))"
echo "Setting status: $desc"
curl -f -s -X POST -H "Content-Type: application/json" \
-H "Authorization: token $(cat ~/oauth_token.txt | tr -d '\n')" \
-d '{"state": "success", "context": "android/apk_diff", "description": "'"${desc}"'"}' \
Expand Down
Loading