Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Hudson » How to deploy Maven artifacts from matrix build
How to deploy Maven artifacts from matrix build [message #1516106] Thu, 18 December 2014 17:05
Andreas Sewe is currently offline Andreas SeweFriend
Messages: 111
Registered: June 2013
Senior Member
Hi,

I have set up a parameterized Hudosn job with a configuration matrix. Now, I want to deploy my Maven artifacts from one of these configurations (which one is determined by the build's parameter). What's the best approach here?

I cannot simply do a "mvn clean deploy" in my "Invoke Maven 3" build step, as that would cause (slightly different) artifacts to be deployed multiple times. This kind of non-determinism is clearly undesirable.

Now, having a promotion with the "Deploy artifacts to Maven repository" action seems to be the most natural, but I have no way to tell this action which of the various configurations' artifacts to deploy. It simply fails:
No artifacts are recorded. Is this a Maven project?
build hudson.plugins.promoted_builds.tasks.RedeployBatchTaskPublisher@39e51921 FAILURE

One last alternative I can think of is making the deploy goal's execution dependent upon the activation of a profile, but that seems awfully obscure.

Are there any other alternatives I have missed?
Previous Topic:Is Hudson Mercurial Plugin actively maintained?
Next Topic:Implementing page transition in the User Configurations page
Goto Forum:
  


Current Time: Tue Nov 13 00:19:21 GMT 2018

Powered by FUDForum. Page generated in 0.02505 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top