如何在 jenkins 文件中为管道作业启用远程触发器?
How to enable the "Trigger builds remotely (e.g., from scripts)" section in a Jenkins file for a pipeline job. Want to achieve the same task of freestyle project in pipeline.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我发现这是一个声明性管道,它不适用于我的 Jenkins 版本,但我认为这是因为我有一个较旧的安装。
来源
I found this for a declarative pipeline, which doesn't work on my version of Jenkins, but I think that is because I have an older installation.
Source
Jenkins Pipeline 作业还为远程构建触发器提供相同的选项。不需要额外的插件或解决方法。

Jenkins 作业也可以由用户级身份验证令牌触发。要启用用户级身份验证令牌,请按照以下步骤操作。
注意:生成token时必须复制token,生成后无法查看token。
Jenkins Pipeline job also provides the same option for remote build trigger. There is no need for additional plugins or workarounds.

Jenkins jobs can also be triggered by user level authentication tokens. To enable user level authentication token please follow below steps.
Note: You must copy the token when you generate it, You cannot view the token afterwards.