Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Remove jq from javadoc script #8316

Merged
merged 1 commit into from
Sep 8, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 2 additions & 9 deletions .kokoro/release/publish_javadoc11.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,8 @@ pushd $(dirname "$0")/../../
# install docuploader package
python3 -m pip install gcp-docuploader

apt-get update
# install jq to extract field from json file
apt-get install -y jq

doclet_name="java-docfx-doclet-1.7.0.jar"

# compile all packages
#mvn clean install -B -q -DskipTests -Dcheckstyle.skip -Denforcer.skip=true -T 1C

# Retrieve list of modules from aggregator pom
modules=$(mvn help:evaluate -Dexpression=project.modules | grep '<.*>.*</.*>' | sed -e 's/<.*>\(.*\)<\/.*>/\1/g')
excluded_modules=('CoverageAggregator' 'google-cloud-gapic-bom')
Expand All @@ -48,8 +41,8 @@ do
# Proceed if module is not excluded
if [[ ! "${excluded_modules[*]}" =~ $module ]]; then
pushd $module
# Extract Cloud RAD module name
NAME=$(jq -r '.distribution_name' .repo-metadata.json | cut -d ':' -f 2)
# Extract Cloud RAD module name from `distribution_name` in .repo-metadata.json
NAME=$(grep -o '"distribution_name": "[^"]*' .repo-metadata.json | grep -o '[^"]*$' | cut -d ':' -f 2)
# Extract (current) version from versions.txt and remove `-SNAPSHOT`
VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3 | sed -e 's/-SNAPSHOT//g')
echo "Running for ${NAME}-${VERSION}"
Expand Down