linux - 从 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
解决方案
推荐阅读
- terraform - Terraform 遍历列表
- android - OmdB API 未在我的 TextViews 中显示结果
- python - 读取、编辑,然后将文本 (.txt) 文件保存为列表
- sql-server - 使用表变量而不是临时表时存储过程中的性能问题
- c# - 选择具有最大值的实体
- python - 如何在安装 Scipy for Scikit learn 时修复“E: Package 'libatlas-dev' has no installation Candidate”?
- django - 如何在 Django 单元测试中忽略第二个数据库?
- elasticsearch - 弹性搜索 6.4.2 | 图表看不到任何东西
- r - 将 0 添加到字符列
- swift - Swift 到 Metal 结构大小不同 - 需要填充