如何借助jenkins远程访问API在jenkins中安装插件? [英] How to install plugins in jenkins, with the help of jenkins remote access API?
问题描述
我想知道,如何使用Jenkins Remote将插件安装到Jenkins 访问API? 我找到了使用jenkins CLI进行安装的方法.但是我需要知道如何使用API进行相同的操作. 我尝试使用jenkins-python库.但是我没有找到任何办法 在那里安装插件.
I would like to know, how can I install a plugin to Jenkins, using the Jenkins Remote access API? I found a way to install using jenkins CLI. But I need to know how to do the same using API. I tried using jenkins-python library. But I did not find any way to install plugin there.
推荐答案
我认为这是不可能的.但是,作为解决方法,您可以考虑创建一个通过Jenkins CLI安装插件的作业.然后,您可以使用适当的参数通过API调用该作业.
I do not think this is possible. However, as a workaround you may consider creating a job that would install plugins via Jenkins CLI; you then can invoke that job via the API with appropriate parameters.
这篇关于如何借助jenkins远程访问API在jenkins中安装插件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!