Reputation: 2610
With CloudBees now supporting deployment of Java applications, is it possible to use the post-build action in Jenkins "Deploy to CloudBees" to deploy your app? Furthermore, I'd like to use the Maven assembly plugin's jar-with-dependencies goal so that I can simply and automatically deploy my entire app to CloudBees right through Jenkins.
Upvotes: 3
Views: 690
Reputation: 2610
While the current CloudBees deployer Jenkins plugin appears to not support this, in fact it does. Here are the steps that after much trial and error worked for me:
<goal>single</goal>
and <descriptorRef>jar-with-dependencies</descriptorRef>
described here. That will put an additional jar file in your target folder {artifactId}-{version}-jar-with-dependencies.jar
Upvotes: 3
Reputation: 2222
Once you have it setup correctly and deployed initially with the bees sdk, it should just deploy from the deployer plugin on Jenkins as a war normally would.
Once set up, the settings that define where your main class is persist between deploys.
Upvotes: 0