用于从Jenkins断开/重新连接从站的Rest API [英] Rest API for disconnect/reconnect slave from Jenkins

查看:104
本文介绍了用于从Jenkins断开/重新连接从站的Rest API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道我们可以发布以下内容以使Jenkins上的奴隶脱机

I know we can post the following to offline a slave on Jenkins

http://[jenkins_url]:8080/computer/[slave_name ]/toggleOffline?offlineMessage = bye

但是有一个用于断开和连接奴隶的人吗?

but is there one for disconnecting and connecting slave?

推荐答案

我最终不得不猜测api,但至少我找到了它.对于那些感兴趣的人,有api链接可以断开从代理并将其重新连接到Jenkins.

I ended up had to guess the api, but at least I found it. For those who are interested, there are the api link to disconnect and reconnect a slave agent to Jenkins.

断开连接: http://[jenkins_url]:8080/computer/[slave_name]/doDisconnect ?offlineMessage = bye

重新连接: http://[jenkins_url]:8080/computer/[slave_name]/launchSlaveAgent

这篇关于用于从Jenkins断开/重新连接从站的Rest API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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