Download Artifactory artifact using Jenkins and deploy

不想你离开。 提交于 2019-12-13 15:22:22

问题


We have a Jenkins/Maven/Wildfly/Artifactory job that builds and deploys EAR file on wildfly and then in Artifactory.

I'm trying to create another Jenkins manual job that retrieves a specific build from Artifactory and deploys to Wildfly.

How do I tell Jenkins to retrieve artifacts from Artifactory? I'm using 'Copy artifacts from another project'.

Is there a similar plugin that will help me to download artifacts from Artifactory?

Thanks!


回答1:


The artifactory plugin for Jenkins has the option to "resolve" artifacts, i.e. download them from Artifactory.

This may require the Pro version of Artifactory though.

To configure it:

  • install the plugin (https://wiki.jenkins-ci.org/display/JENKINS/Artifactory+Plugin)
  • on the job configuration page, enable "Generic Artifactory Integration".
  • go to "Resolved Artifacts" and enter the artifacts to resolve/download - the question-mark icon on that page will tell you more about the syntax.


来源:https://stackoverflow.com/questions/34781464/download-artifactory-artifact-using-jenkins-and-deploy

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