在这篇文章中:How to remotely trigger Jenkins multibranch pipeline project build?描述了如何远程启动分支的构建。现在,我想对标签执行相同的操作。对于分支机构,它起作用:
curl -X POST http://user:token@jenkins:8080/job/Frameworks%20development%20pipeline/job/develop/build
其中“ develop”是分支名称。现在,我想对标记(例如“ v2”)执行相同的操作,但是怎么做?
...job/Frameworks%20development%20pipeline/tags/v2/build
无效,...job/Frameworks%20development%20pipeline/tags/job/v2/build
也无效。这些都给出404的