This repository was archived by the owner on May 8, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,8 +15,15 @@ set -e
1515function get_latest_released_version() {
1616 local group_id=$1
1717 local artifact_id=$2
18- latest=$( curl -s " https://search.maven.org/solrsearch/select?q=g:${group_id} +AND+a:${artifact_id} &core=gav&rows=500&wt=json" | jq -r ' .response.docs[] | select(.v | test("^[0-9]+(\\.[0-9]+)*$")) | .v' | sort -V | tail -n 1)
19- echo " ${latest} "
18+ json_content=$( curl -s " https://search.maven.org/solrsearch/select?q=g:${group_id} +AND+a:${artifact_id} &core=gav&rows=500&wt=json" )
19+ latest=$( jq -r ' .response.docs[] | select(.v | test("^[0-9]+(\\.[0-9]+)*$")) | .v' <<< " ${json_content}" | sort -V | tail -n 1)
20+ if [[ -z " ${latest} " ]]; then
21+ echo " The latest version of ${group_id} :${artifact_id} is empty."
22+ echo " The returned json from maven.org is invalid: ${json_content} "
23+ exit 1
24+ else
25+ echo " ${latest} "
26+ fi
2027}
2128
2229# Update a key to a new value in the generation config.
Original file line number Diff line number Diff line change 1818 schedule :
1919 - cron : ' 0 2 * * *'
2020 workflow_dispatch :
21+
2122jobs :
2223 update-generation-config :
2324 runs-on : ubuntu-24.04
4041 --repo ${{ github.repository }}
4142 env :
4243 GH_TOKEN : ${{ secrets.CLOUD_JAVA_BOT_TOKEN }}
44+
Original file line number Diff line number Diff line change @@ -67,6 +67,8 @@ integration)
6767 -DtrimStackTrace=false \
6868 -Dclirr.skip=true \
6969 -Denforcer.skip=true \
70+ -Dcheckstyle.skip=true \
71+ -DskipUnitTests=true \
7072 -fae \
7173 verify
7274 RETURN_CODE=$?
@@ -124,7 +126,7 @@ bash .kokoro/coerce_logs.sh
124126if [[ " ${ENABLE_FLAKYBOT} " == " true" ]]
125127then
126128 chmod +x ${KOKORO_GFILE_DIR} /linux_amd64/flakybot
127- ${KOKORO_GFILE_DIR} /linux_amd64/flakybot -repo=googleapis/java-storage
129+ ${KOKORO_GFILE_DIR} /linux_amd64/flakybot -repo=googleapis/java-bigtable
128130fi
129131
130132echo " exiting with ${RETURN_CODE} "
You can’t perform that action at this time.
0 commit comments