jenkinsci / artifact-promotion-plugin

A simple Jenkins plugin to promote artifacts.
29 stars 23 forks source link

Add support for multiple artifact extensions #11

Open scottTomaszewski opened 8 years ago

scottTomaszewski commented 8 years ago

In configuration, it would be nice to be able to promote multiple artifacts with the same groupId, artifactId, version, etc. For example, to promote a pom and jar:

job {
    steps {
        artifactPromotion {
          groupId("foo")
          artifactId("bar")
          version("1.2.3")
          extension(["pom", "jar"])
          stagingRepository("nexus", "foo", "bar")
          releaseRepository("nexus", "foo", "bar")
          debug(false)
        }
    }
}
hcguersoy commented 8 years ago

Thank you, I'll take a look on it how this can be implemented. Feel free to implement it by your own and open a pull request :-)

stahloss commented 4 years ago

@hcguersoy Why not simply promote all artifacts for the specified version? And optionally an exclusion matcher or something?

Now I need to call artifactPromotion separately for every type of extension :( And then the same for every classifier :(

hcguersoy commented 4 years ago

@hcguersoy Why not simply promote all artifacts for the specified version? And optionally an exclusion matcher or something?

Now I need to call artifactPromotion separately for every type of extension :( And then the same for every classifier :(

@D0rmouse yes, would be a possibility and usable for most of the projects. Can you provide a PR?

stahloss commented 4 years ago

@hcguersoy Not sure my company will give me more time to spend on this. I may have to drop it or find alternate solutions.

It would be nice to put in the README that this is a serious limitation of the plugin for any future users.