Reputation: 187
I use jenkins 1.500 and I looking for plugin that will provide possibility to deploy artifacts to maven repository, in previuos version of jenkins it was possible in post build actions using maven-plugin but for now that option dissappear...
Upvotes: 13
Views: 46953
Reputation: 593
I was able to perform this activity using "Jenkins promoted builds plugin". Useful when I want to deploy the artifacts after regression tests are successful. The build is promoted when the regression tests are completed, and then we can add an action to deploy the artifacts to the Maven repo.
Note: To use this feature you shouldn't deactivate the automatic artifact archiving.
Upvotes: 0
Reputation: 11097
Take a look at This answer.
You can add a "Post-build Actions" to "Deploy artifacts to Maven Repository" (the Maven Project Plugin will need to be installed). Then click "Advanced" and set your Repository URL to something appropriate (http://yourserver:8082/nexus/content/repositories/releases/
) and set Repository ID to the server in your settings.xml
that contains the authentication necessary, such as my-releases
or whatever.
Upvotes: 9
Reputation: 15675
Isn't running the deploy
phase of your project what you are looking for?
Upvotes: 3