Skip to content

Commit e7f8b1a

Browse files
committed
use git rev-parse
1 parent 27e9efc commit e7f8b1a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

buildscripts/kokoro/cronet.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,10 @@ new_apk_size="$(stat --printf=%s app/build/outputs/apk/release/app-release-unsig
8989

9090
# Get the APK size and dex count stats using the target branch
9191

92-
sudo apt-get install -y jq
93-
target_branch="$(curl -s https://api.github.com/repos/grpc/grpc-java/pulls/$KOKORO_GITHUB_PULL_REQUEST_NUMBER | jq -r .base.ref)"
92+
base_commit="$(git rev-parse HEAD^)"
9493

9594
cd $BASE_DIR/github/grpc-java
96-
git checkout "$target_branch"
95+
git checkout "$base_commit"
9796
./gradlew install
9897
cd examples/android/helloworld/
9998
./gradlew build

0 commit comments

Comments
 (0)