Artifactory plugin for rundeck?

[亡魂溺海] 提交于 2021-01-29 14:55:30

问题


I have been unable to find a plugin to list available artifacts from Artifactory.

Does anyone know of a method to do this in a rundeck job, I want to deploy a war file which is available In artifactory to tomcat using rundeck.

Regarding deployments to tomcat in rundeck what are best practices there ?


回答1:


You can create a Job option with remote option values, which will fetch the list of artifacts from Artifactory.
Since Rundeck support limited JSON format, you will not be able to use most of the Artifactory REST APIs directly. What you can do instead is develop an Artifactory user plugin of type Excutions.
User plugins allows you to easily extend Artifactory's behavior with your own code written in Groovy. The plugins can use the Artifactory public API, which contains everything you will need for getting a list of artifacts.
You can develop a plugin which contains your own logic for searching artifacts and can control the format of the JSON response. Executions user plugins are executed using REST calls and therefor can be called from Rundeck.
Please notice that user plugins required the Pro version of Artifactory.




回答2:


You can use the Artifactory REST API, namely Artifact Version Search.



来源:https://stackoverflow.com/questions/25140351/artifactory-plugin-for-rundeck

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