Jenkins Artifactory Plugin: Updating to the Latest Snapshot on Git

我与影子孤独终老i 提交于 2019-12-06 02:03:18

SOLUTION: Choose the "Deploy Artifacts to Artifactory" post-build action. This is where the plugin does the missing final git push of the updated POMs, in addition to doing the actual artifact deployment.

WORKAROUND (In case you realy don't want to deploy your artifacts to Artifactory): Add a post-build action of "Git Publisher". I checked "Push Only If Build Succeeds". Then I clicked "Add Branch" and put "master" in the branch to push (because I had master in the git "Checkout to a specific local branch" box, per the plugin config page) and "origin" in the "Target remote name" block. This forced a push of the locally-committed updated POM.

It would be nice if the plugin did the final git push and publish to Artifactory automatically for maven without having to know to select the "Deploy Artifacts to Artifactory" post-build action, like it does for gradle.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!