How to deploy Maven artifacts from matrix build [message #1516106] |
Thu, 18 December 2014 17:05 |
Andreas Sewe 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?
|
|
|
Powered by
FUDForum. Page generated in 0.01899 seconds