Skip to content

Commit 4b21994

Browse files
committed
ci(generation): skip files inheriting coordinates in release check
Fixes #12840
1 parent 3a352fe commit 4b21994

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

generation/check_existing_release_versions.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,12 @@ function find_existing_version_pom() {
1818
local version=$(xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' \
1919
"${pom_file}")
2020
echo -n "Checking ${group_id}:${artifact_id}:${version}:"
21-
if [ -z "${group_id}" ] || [ -z "${artifact_id}" ] || [ -z "${version}" ]; then
22-
echo "Couldn't parse the pom file: $pom_file"
21+
if [ -z "${group_id}" ] || [ -z "${version}" ]; then
22+
echo " Skipping file without explicit coordinates (likely inherits): $pom_file"
23+
return 0
24+
fi
25+
if [ -z "${artifact_id}" ]; then
26+
echo "Couldn't parse artifact_id in the pom file: $pom_file"
2327
exit 1
2428
fi
2529
if [[ "${version}" == *SNAPSHOT* ]] && [ "${artifact_id}" != "google-cloud-java" ]; then

0 commit comments

Comments
 (0)