0
votes

I have a large Maven project in Jenkins. It consists of a parent project, and about a dozen local projects. Using Jenkins, I am able to do mvndeploy` and for the build to successfully deploy to my Artifactory repository.

However, I can't seem to get the Jenkin's Artifactory plugin to work itself to work.

My Artifactory setting in Jenkins:

Jenkins Artifactory Master Setting

And here's the setting for our job:

Job Artifactory Setting

3
Did you solved this problem. I have same problem here. Simply mvn clean install doesn't trigger artifactory deployer as expected. My configuration seems very likely to yours. Thanks. - Selim Ok
No. I simply just used mvn deploy. Works. - David W.

3 Answers

3
votes

When using the Jenkins Artifactory Plugin you should execute mvn install instead of mvn deploy. This is because the plugin collects the published artifacts from Maven and when executing mvn deploy directly you are kind of by-passing it's behavior.

0
votes

Use Build Step "Invoke Artifactory Maven 3" when working with Artifactory plugin. And most preferably use goals "clean install"

0
votes

I had the same problem and resolved by adding details under Build Environment -> Generic-Artifactory Integration as shown in below image

Blockquote

Published Artifacts now started uploading into desired location in artifactory.