This repository was archived by the owner on Feb 6, 2026. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +20
-4
lines changed
Expand file tree Collapse file tree 7 files changed +20
-4
lines changed 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 2828 steps :
2929 - uses : actions/checkout@v4
3030 with :
31+ fetch-depth : 0
3132 token : ${{ secrets.CLOUD_JAVA_BOT_TOKEN }}
3233 - name : Update params in generation config to latest
3334 shell : bash
3637 [ -z "$(git config user.email)" ] && git config --global user.email "cloud-java-bot@google.com"
3738 [ -z "$(git config user.name)" ] && git config --global user.name "cloud-java-bot"
3839 bash .github/scripts/update_generation_config.sh \
39- --base_branch "${base_branch}"\
40+ --base_branch "${base_branch}" \
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 @@ -42,6 +42,11 @@ if [[ ! -z "${GOOGLE_APPLICATION_CREDENTIALS}" && "${GOOGLE_APPLICATION_CREDENTI
4242 export GOOGLE_APPLICATION_CREDENTIALS=$( realpath ${KOKORO_GFILE_DIR} /${GOOGLE_APPLICATION_CREDENTIALS} )
4343fi
4444
45+ export TEST_UNIVERSE_DOMAIN_CREDENTIAL=$( realpath ${KOKORO_GFILE_DIR} /secret_manager/client-library-test-universe-domain-credential)
46+ export TEST_UNIVERSE_DOMAIN=$( gcloud secrets versions access latest --project cloud-devrel-kokoro-resources --secret=client-library-test-universe-domain)
47+ export TEST_UNIVERSE_PROJECT_ID=$( gcloud secrets versions access latest --project cloud-devrel-kokoro-resources --secret=client-library-test-universe-project-id)
48+ export TEST_UNIVERSE_LOCATION=$( gcloud secrets versions access latest --project cloud-devrel-kokoro-resources --secret=client-library-test-universe-storage-location)
49+
4550RETURN_CODE=0
4651set +e
4752
Original file line number Diff line number Diff line change 1+ # Format: //devtools/kokoro/config/proto/build.proto
Original file line number Diff line number Diff line change 1+ # Format: //devtools/kokoro/config/proto/build.proto
Original file line number Diff line number Diff line change 1- gapic_generator_version : 2.55.1
1+ gapic_generator_version : 2.55.2-SNAPSHOT
22googleapis_commitish : bc7f715d7f58afe381fbc244a8bcde7f0afa11ed
33libraries_bom_version : 26.56.0
44libraries :
You can’t perform that action at this time.
0 commit comments