首页 > 解决方案 > 从 Jenkins 中的 Shell 触发作业

问题描述

尝试使用 CURL 命令从 Shell 触发作业时收到以下错误

curl -X POST --user Myname@example.com:<APITOKEN> "https://example.com/job/Testing/build?token=TOKEN_NAME"

收到错误

Authentication required
 <!--
You are authenticated as: anonymous
Groups that you are in:

Permission you need to have (but didn't): hudson.model.Hudson.Read
... which is implied by: hudson.security.Permission.GenericRead
... which is implied by: hudson.model.Hudson.Administer

我们正在为此使用 Google Okta 身份验证。

请建议从壳牌触发作业的方法。

TIA

标签: linuxbashshelljenkinscurl

解决方案


推荐阅读