Skip to content

ci: release job for Maps libraries#9152

Merged
suztomo merged 14 commits intomainfrom
maps_release
Feb 24, 2023
Merged

ci: release job for Maps libraries#9152
suztomo merged 14 commits intomainfrom
maps_release

Conversation

@suztomo
Copy link
Member

@suztomo suztomo commented Feb 23, 2023

Fixes #9045. This is a release job for Maps libraries. Currently we have 2 of them: java-maps-addressvalidation and java-maps-routing.

  • Introducing stage-non-google-oss-sonatype job, which I'll setup a child job of "stage" as below:

    type: SUB_JOB
    ...
    chain_spec {
      parent_job_name: "cloud-devrel/client-libraries/java/google-cloud-java/release/stage"
    }
    
  • Renaming the group ID of the Maps artifacts so that they can be published to oss.sonatype.org together (See Setup a job for java-maps artifacts release #9045 for the background)


Would OwlBot Java Postprocessor override the group ID? => No, OwlBot post processor didn't revert the group ID change. Good.

image

Comment on lines -24 to -25
- "/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionProto.java"
- "/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/ConnectionProto.java"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strange. I don't intend to modify this.

setup_environment_secrets
create_settings_xml_file "settings.xml"

echo "Deploying artifacts to staging repositories"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No functionality change in this shell script. Just changing variable name and comments.


env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/google-cloud-java/.kokoro/release/stage-non-google-oss-sonatype.sh"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Memo: This file is copy from stage.cfg except this shell script.

@suztomo suztomo requested a review from JoeWang1127 February 23, 2023 20:50
Copy link
Contributor

@JoeWang1127 JoeWang1127 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

echo "Deploying non-Cloud artifacts to staging repositories in oss.sonatype.org"

# Lists modules for Google Maps artifacts, including their submodules.
includedMapsModule=$(find java-maps-* -name 'pom.xml' \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we change includedMapsModule to nonCloudModules? Maybe there will be artifacts similar to this one.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. Renaming.

env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/google-cloud-java/.kokoro/release/stage.sh"
value: "github/google-cloud-java/.kokoro/release/stage_google_oss_sonatype_org.sh"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ddixit14 Can you review this change? Is this looking good to you?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I think it makes more sense than having something like stage_maps.sh because we might get more artifacts which have the same host.

@suztomo suztomo merged commit 27248c8 into main Feb 24, 2023
@suztomo suztomo deleted the maps_release branch February 24, 2023 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Setup a job for java-maps artifacts release

3 participants