I wanted to push the docker image from Jenkins(Running on same GCP project) to GCP Artifact Repo. I am using the maven-jib plugin to build and push the image. Maven-jib-plugin supports the container registry(It's Deprecated) but no documentation for the artifact registry.
Could you please help me with how to achieve this?
Based on Jenkins community:
roles/artifactregistry.writer).Here's an example of jenkinsfile to push to Artifact Registry:
You may refer to the documentations below for your reference: