在部署到詹金斯生产之前建立测试仓库

发布于 2025-02-10 03:08:46 字数 103 浏览 2 评论 0 原文

因此,我有一个服务的BDD测试项目,我想要的是,一旦我将分支合并到该服务的主分支中,则应首先触发BDD测试,如果每个测试案例都通过,则只能允许它将服务部署到生产中。 BDD用黄瓜java编写。

So I have a BDD testing project for a service and what I want is that as soon as I merge a branch into the master branch of that service then that BDD testing should be triggered first and if every test case passes then only it should allow to deploy the service to production.
The BDD is written in Cucumber-Java.

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

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

发布评论

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

评论(1

南冥有猫 2025-02-17 03:08:46

您需要在CI服务器(例如Jenkins)中进行配置。

您可以在设置Jenkins时考虑这些步骤以实现您的用例:

最后,这是一篇详细的文章,可以逐步说明如何将NocodeBDD与Jenkins集成。尽管本文适用于NocodeBDD,但您可以通过更改脚本的某些部分来复制这些步骤并将其应用于任何BDD项目。

You need to configure this in a CI server such as Jenkins.

You can consider these steps, when setting up Jenkins, to achieve your use case:

Finally here is a detailed article that gives step by step explanation of how you could integrate NoCodeBDD with Jenkins. Though this article is for NoCodeBDD, you could copy these steps and apply them for any BDD project by changing some parts of the script.

https://blog.nocodebdd.com/integrate-nocodebdd-and-jenkins-to-run-bdd/

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