Skip to content
This repository was archived by the owner on May 8, 2026. It is now read-only.

Commit 175a3eb

Browse files
committed
latest changes
1 parent 42f16d9 commit 175a3eb

3 files changed

Lines changed: 14 additions & 3 deletions

File tree

.github/scripts/update_generation_config.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,15 @@ set -e
1515
function 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.

.github/workflows/update_generation_config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ on:
1818
schedule:
1919
- cron: '0 2 * * *'
2020
workflow_dispatch:
21+
2122
jobs:
2223
update-generation-config:
2324
runs-on: ubuntu-24.04
@@ -40,3 +41,4 @@ jobs:
4041
--repo ${{ github.repository }}
4142
env:
4243
GH_TOKEN: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }}
44+

.kokoro/build.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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
124126
if [[ "${ENABLE_FLAKYBOT}" == "true" ]]
125127
then
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
128130
fi
129131

130132
echo "exiting with ${RETURN_CODE}"

0 commit comments

Comments
 (0)