Jenkins XML api - 如何阅读jenkins母版页的文本内容?

时间:2022-07-23 20:21:37

I need to read some text on Jenkins master page, under which several jobs are listed, although as its not the job, I am not able to find any text information on that page except the job names after its xml view, its kind of convenience message printed for user which I need to read.

我需要在Jenkins母版页上阅读一些文本,其中列出了几个作业,虽然不是这个工作,但我无法在该页面上找到任何文本信息,除了xml视图后的作业名称,它的便利性为用户打印的消息,我需要阅读。

I tried to get xml view of the page as below :

我试图获取页面的xml视图,如下所示:

http://{jenkinsserver}/api/xml

Instead if I try to do same for a job listed under this server I can see text information on its xml view.

相反,如果我尝试对此服务器下列出的作业执行相同操作,我可以在其xml视图上看到文本信息。

http://{jenkinsserver}/view/job/{jobname}/api/xml

Is there any I can read that information ?

有没有我可以阅读这些信息?

1 个解决方案

#1


1  

If Jenkins is going to shut down, then the quietingDown field is set to true in the main page's API response.

如果Jenkins要关闭,则在主页的API响应中将quietingDown字段设置为true。

#1


1  

If Jenkins is going to shut down, then the quietingDown field is set to true in the main page's API response.

如果Jenkins要关闭,则在主页的API响应中将quietingDown字段设置为true。