I'm building artifacts by jenkins and uploading them to maven2 repo in OSS Nexus 3.6 by nexusArtifactUploader on every git commit. On tagged commit it's uploading as release with version mentioned in git tag; untagged commits are published as snapshots of last git tag's version.
Everyone has RO access to that repository, so I don't need to specify any credentials in order to download the artifact.
On the deploy stage I'm downloading artifacts by links like nexus_url/repository/my-repo-releases/com/example/somthing/my_artifact/1.0.15/my_artifact-1.0.15.jar . But I want to download the latest release via link like nexus_url/repository/my-repo-releases/com/example/something/my_artifact/latest (I don't want to specify release number, I just want to have latest).
Could you please tell me how to do that? It looks like the basic operation for every repository. I'm not sure if I should write some scripts using nexus API - or shell I?