view

更新时间:2024年9月28日 13:35 浏览:265

创建

<jenkins url>/createView

curl -X POST <jenkins url>/createView?name=<view name> \
  --data-binary "@viewCofnig.xml" \
  -H "Content-Type: text/xml"  \
  --user <username>:<api token>

删除

<jenkins url>/view/<view name>/doDelete

curl -X POST <jenkins url>/view/<view name>/doDelete  \
  --user <username>:<api token>

查询状态

<jenkins url>/view/<view name>/api/json

curl -X GET <jenkins url>/view/<view name>/api/json \
  --user <username>:<api token>

查询配置

<jenkins url>/view/<view name>/config.xml

curl -X GET <jenkins url>/view/<view name>/config.xml \
  --user <username>:<api token>

更新配置

<jenkins url>/view/<view name>/config.xml

curl -X POST <jenkins url>/view/<view name>/config.xml \
  --data-binary "@newCofnig.xml" \
  -H "Content-Type: text/xml" \
  --user <username>:<api token>

 

 

导航