简体   繁体   English

BitBucket Webhook 在发布到 Jenkins 时出现 Crumb 问题

[英]BitBucket Webhook gives Crumb issues while posting to Jenkins

I am trying to setup webhook from Bitbucket to Jenkins but it is failing while testing them crumb issues.我正在尝试设置从 Bitbucket 到 Jenkins 的 webhook,但是在测试它们的面包屑问题时失败了。 This Jenkins is deployed to Kubernetes 1.17 and Jenkins is the latest image 2.249.1 .这个 Jenkins 部署到 Kubernetes 1.17 并且 Jenkins 是最新的镜像 2.249.1 。 Even from PostMan I am getting the same issue.即使从邮递员那里我也遇到了同样的问题。 I know there is something wrong in Jenkins Setup only.我知道只有 Jenkins 设置有问题。

Error :错误 :

Error 403 No valid crumb was included in the request错误 403 请求中未包含有效的面包屑

HTTP ERROR 403 No valid crumb was included in the request HTTP ERROR 403 请求中未包含有效的面包屑

Assuming you are triggering the job as a pre-push script, if its throwing crumb errors, you need to create personalized API token within Jenkins and would need that to be embedded in the API call from Bitbucket to Jenkins.假设您将作业作为预推送脚本触发,如果它抛出 crumb 错误,您需要在 Jenkins 中创建个性化的 API 令牌,并且需要将其嵌入到从 Bitbucket 到 Jenkins 的 API 调用中。

Please refer this article for generating a token - https://support.cloudbees.com/hc/en-us/articles/115003090592-How-to-re-generate-my-Jenkins-user-token请参阅本文以生成令牌 - https://support.cloudbees.com/hc/en-us/articles/115003090592-How-to-re-generate-my-Jenkins-user-token

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM