jenkinsci / artifact-promotion-plugin

A simple Jenkins plugin to promote artifacts.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Artifact version renaming on promotion

tiagolo opened this issue · comments

Guys,
What's your possition on adding a option for renaming the version of an artifact on promotion?

Here is any scenario:
I have multiple artifacts that are build in Release Candidates interations, and those are submitted to the test team, if the artifacts are approved they go to the client, if not errors are listed and fixed, a new RC interation is start.
At the end of the prodution cycle we end up with a production version named something like 1.15.0-RC3, and I would like to rename a promoted version to something like 1.15.0-RELEASE, but can't rebuild my artifacts, I need to reuse the approved ones.

If it's ok I can implement this.

Hi @tiagolo ,

sure I've a bit pain with renaming artifacts but hey, then this is needed and fits for your project, why not.

But IMHO only the target artifact should be changed, if you copy, the original should keep its name.

And be aware that the archive contains still the original maven (if you use this crap stuff ;-) metadata.