简体   繁体   English

jenkins 的 bitbucket-build-status-notifier 插件报告错误状态

[英]bitbucket-build-status-notifier plugin for jenkins reports wrong status

Jenkins should notify bitbucket if a job that is linked to a branch has passed or falied, and it does:如果链接到分支的作业已经通过或失败,Jenkins 应该通知 bitbucket,它会:

在此处输入图片说明

But for some reason, in the branch view, it doesn't notify about the result of the last build, and says it failed even if the last build has passed:但出于某种原因,在分支视图中,它不会通知上次构建的结果,并表示即使上次构建已经通过,它也失败了:

在此处输入图片说明

How do I make it refer to the result of the last build only?如何让它只引用上次构建的结果?

Hi I'm the maintainer of the bitbucket-build-status-notifier for Jenkins.嗨,我是 Jenkins 的 bitbucket-build-status-notifier 的维护者。 Actually the plugin creates a new build status for every jenkins build execution for a given commit.实际上,该插件为给定提交的每个 jenkins 构建执行创建了一个新的构建状态。 That means that if you exec a build for a given commit id and it failed and later exec a new build for the same commir id and success, both status success and failed will remain in bitbucket, that's find and not an issue.这意味着,如果您为给定的提交 ID 执行构建并且失败,然后为相同的 commir id 和成功执行新构建,则状态成功和失败都将保留在 bitbucket 中,这就是发现而不是问题。 Anyways I understand your problem or desires and you are not the only one since there's already a issue for solving it.无论如何,我了解您的问题或愿望,您不是唯一的问题,因为已经有问题需要解决。

At the moment I've not much time for developing this new features but I'll do it as soon as possible.目前我没有太多时间来开发这些新功能,但我会尽快完成。

Today it was released a new version of the plugin for jenkins bitbucket-build-status-notifier which allows exactly what you need to avoid the problem you describe.今天,它发布了 jenkins bitbucket-build-status-notifier 插件的新版本,它可以完全满足您的需求,以避免您描述的问题。 It's new config option "Only show latest build status", just ensure this checkbox is checked and enjoy it.这是新的配置选项“仅显示最新的构建状态”,只需确保选中此复选框并享受它。 在此处输入图片说明

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

相关问题 Jenkins Bitbucket 构建状态通知程序插件未显示 - Jenkins Bitbucket Build Status Notifier Plugin not showing jenkins 中带有 bitbucket 构建状态通知程序插件的多分支管道 - Multi branch pipeline with bitbucket build status notifier plugin in jenkins Jenkins 2.3.5 构建通知(Emailext、bitbucket 构建状态通知程序)不工作 - Jenkins 2.3.5 Build Notification (Emailext, bitbucket build status notifier) Not Working bitbucket-build-status-notifier-plugin 使用凭据和管道 - bitbucket-build-status-notifier-plugin using credentials with pipeline 将构建状态从 Jenkins 通知到 Bitbucket Server - Notify build status from Jenkins to Bitbucket Server Jenkins 参数化远程触发器插件返回错误构建的状态 - Jenkins Parameterized Remote Trigger Plugin Returning the Status of the Wrong Build Jenkins未在构建状态中显示所有Junit报告 - Jenkins not showing all the Junit reports in the status of the build Bitbucket(内部部署)在 PR 中显示错误的 Jenkins 构建状态 - 绿色但仍在运行 - Bitbucket (on premise) is showing wrong Jenkins build status in PR - green but still running Jenkins-如何将变量传递给Bitbucket状态通知插件? - Jenkins - How to pass variables to Bitbucket status notify plugin? Jenkins git 插件使用 bitbucket 获取状态代码 128 - Jenkins git plugin getting status code 128 with bitbucket
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM