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: > > 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. > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/9e3775d2-1533-4d32-ba2e-615d89ca398f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
