Nexus Artifact Uploader, us custom artifact version number

96 views
Skip to first unread message

Apollo Clark

unread,
Jun 13, 2016, 5:00:57 PM6/13/16
to Jenkins Users
How can I configure the "Nexus Artifact Uploader" plugin to use a custom snapshot version number? I'd like to reuse the Git commit version at the end of the Snapshot name, to make it easier to track commits to artifacts.

Apollo Clark

unread,
Jun 14, 2016, 1:26:44 PM6/14/16
to Jenkins Users
It looks likt the Nexus Artifact Uploaded doesn't natively support this, unlike the Artifactory Plugin... the best solution seems to be using the "buildnumber-maven-plugin"

Apollo Clark

unread,
Jun 15, 2016, 3:03:17 PM6/15/16
to Jenkins Users
Ok, I tried setting up the "buildnumber-maven-plugin", using Perforce. However, I couldn't get it to pull the P4 Changelist number correctly, and later reuse it within the "upload-artifact-to-nexus" plugin.

To use a "custom artifact version number" in Nexus, I would need to create a "Staging Repo", push the Artifact as a Release with the custom code commit number / P4 Changelist number; then after end-to-end tests are done, use the "artifact-promotion" plugin to push the Artifacts to the "proper" Release project.

Basically, Jenkins has better support for Artifactory vs. Nexus. I'll be updating the pipeline to use Artifactory. If anyone has a better idea, I'd really like to hear it.

On Monday, June 13, 2016 at 5:00:57 PM UTC-4, Apollo Clark wrote:
Reply all
Reply to author
Forward
0 new messages