diff options
author | Giuliano Procida <gprocida@google.com> | 2022-09-26 13:01:19 +0100 |
---|---|---|
committer | Giuliano Procida <gprocida@google.com> | 2022-09-30 15:17:33 +0100 |
commit | b3535c08788626e8cf3977841e9d2573eead384e (patch) | |
tree | 5802042e4ac4f97a71e919a255a80ccd2d81c43a | |
parent | 4c64926deafec91904b6473184d87da5696e80aa (diff) | |
download | build-tools-b3535c08788626e8cf3977841e9d2573eead384e.tar.gz |
Repoint at kernel-build-tools-2022
Bug: 248207641
Change-Id: Id870ec8878340fc223c54466546f464bc906ab4a
Signed-off-by: Giuliano Procida <gprocida@google.com>
-rwxr-xr-x | update-prebuilts.sh | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/update-prebuilts.sh b/update-prebuilts.sh index 9ef6ece..9d77a1a 100755 --- a/update-prebuilts.sh +++ b/update-prebuilts.sh @@ -1,11 +1,12 @@ #!/bin/bash -e -if [ -z $1 ]; then +if [ -z "$1" ]; then echo "usage: $0 <build number>" exit 1 fi +readonly BUILD_NUMBER="$1" -readonly BUILD_NUMBER=$1 +readonly AOSP_BRANCH='kernel-build-tools-2022' cd "$(dirname $0)" @@ -24,7 +25,7 @@ function finish { trap finish EXIT function fetch_artifact() { - /google/data/ro/projects/android/fetch_artifact --branch aosp_kernel-build-tools --bid ${BUILD_NUMBER} --target $1 "$2" "$3" + /google/data/ro/projects/android/fetch_artifact --branch "aosp_$AOSP_BRANCH" --bid ${BUILD_NUMBER} --target $1 "$2" "$3" } fetch_artifact linux build-prebuilts.zip "${tmpdir}/linux.zip" @@ -41,8 +42,8 @@ unzip_to linux-x86 "${tmpdir}/linux.zip" cp -f "${tmpdir}/manifest.xml" manifest.xml git add manifest.xml linux-x86 -git commit -m "Update kernel-build-tools to ab/${BUILD_NUMBER} +git commit -m "Update $AOSP_BRANCH to ab/${BUILD_NUMBER} -https://ci.android.com/builds/branches/aosp_kernel-build-tools/grid?head=${BUILD_NUMBER}&tail=${BUILD_NUMBER} +https://ci.android.com/builds/branches/aosp_$AOSP_BRANCH/grid?head=${BUILD_NUMBER}&tail=${BUILD_NUMBER} Test: treehugger" |