Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JENKINS how to deploy artifacts to maven repo

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...

like image 406
user1013149 Avatar asked Feb 04 '13 20:02

user1013149


People also ask

How do you deploy artifacts in Jenkins?

Publish a package using JenkinsSelect your build pipeline, and then select Configure to edit your build definition. Select Build, and then select Add build step to add a new task. Select Save, and then queue your build. Your NuGet package should be published to your Azure Artifacts feed.

How do I use Artifactory with Maven?

Once you have created your Maven repository, go to Application | Artifactory | Artifacts, select your Maven repository and click Set Me Up. In the Set Me Up dialog, click Generate Maven Settings. You can now specify the repositories you want to configure for Maven.


2 Answers

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.

like image 185
Josh Johnson Avatar answered Sep 23 '22 18:09

Josh Johnson


Isn't running the deploy phase of your project what you are looking for?

like image 40
Miquel Avatar answered Sep 22 '22 18:09

Miquel