无论如何,是否有使用BASH脚本在Bitbucket中运行合并结果管道?

发布于 2025-01-31 22:00:32 字数 158 浏览 5 评论 0 原文

我想检查并验证合并到主是一个好的还是坏的,因此我想触发管道以在合并到主分支合并后检查合并请求。

  • 则管道应在原子上
  • 如果合并是好的,如果合并是好的,
  • 如果合并不良, 触发。 [新的DevOps]任何其他解决方案都可能会受到赞赏!

I want to check and validate if the merge to master was a good one or bad one so I want to trigger the pipeline to check the merge requests after it is merged to a master branch.

  • Pipeline should trigger atomically once a PR is merged
  • pipeline should be successful if the merge is a good onw
  • pipeline should fail if the merge is bad
    [New to DevOps] Any other solutions are likely appreciated!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

小镇女孩 2025-02-07 22:00:32

通过Bitbucket管道文档读取

管道合并后应在原子上触发

当您合并时可以运行设定的管道。

如果合并不好,则管道应该失败

,则管道应失败。您只需要采取步骤检查可能出了什么问题即可。如果有冲突,Bitbucket PR页面将在合并之前告诉您。

Read thru the Bitbucket pipeline documentation https://support.atlassian.com/bitbucket-cloud/docs/get-started-with-bitbucket-pipelines/

Pipeline should trigger atomically once a PR is merged

It is possible to run a set pipeline when you do a merge.

pipeline should fail if the merge is bad

Any pipeline can be made to fail, if the step's scripts are made so they can return an error code if they run into issues. You just need to make the steps to check what could have gone wrong. Bitbucket PR page will tell you before you merge if there are conflicts.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文