问题描述
我一直找不到能列出Artifactory中可用工件的插件.
I have been unable to find a plugin to list available artifacts from Artifactory.
有人知道在rundeck作业中执行此操作的方法吗,我想部署一个war文件,该文件可以使用rundeck在tomcat的工件中使用.
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.
关于在rundeck中的tomcat部署,那里有什么最佳实践?
Regarding deployments to tomcat in rundeck what are best practices there ?
推荐答案
您可以使用远程选项值,它将从Artifactory获取工件列表.
由于Rundeck支持有限的 JSON格式,因此您将无法使用大多数直接使用Artifactory REST API.您可以做的是开发类型为 Excutions .
用户插件使您可以使用自己用Groovy编写的代码轻松扩展Artifactory的行为.插件可以使用人工工厂公共API ,其中包含获取工件列表所需的一切.
您可以开发一个插件,该插件包含用于搜索工件的自己的逻辑,并且可以控制JSON响应的格式.执行用户插件是使用REST调用执行的,因此可以从Rundeck调用.
请注意,用户插件需要Artifactory Pro版本.
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.
这篇关于Rundeck的Artifactory插件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!