如何借助 jenkins 远程访问 API 在 jenkins 中安装插件? [英] How to install plugins in jenkins, with the help of jenkins remote access API?

查看:58
本文介绍了如何借助 jenkins 远程访问 API 在 jenkins 中安装插件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道,如何使用 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆