Jenkins Job 中用于构建 PR 和分支的分支源的参考规范
我将 Jenkins 服务器与 Github 和 sonarqube 集成。
现在我想使用 sonarqube 扫描我的开发分支并拉取请求(仅提交到开发分支)。
所以我像这样配置参考规范:
+refs/heads/develop:refs/remotes/origin/develop
发现分支 现在排除也归档为 PR 的分支
我发现当 Pull 请求提交到开发者分支时,它会触发 jenkins 构建,也会触发开发者分支,但功能分支也会触发 jenkins 作业。那么我应该如何编写参考规范呢?谁能帮助我!谢谢你!
I have Jenkins server integrated with Github and sonarqube.
Now I want to use sonarqube to scan my develop branch and pull request (Only which is submitted to develop branch).
so I config the Ref Spec like this:
+refs/heads/develop:refs/remotes/origin/develop
Discover branches
Exclude branches that are also filed as PRs
now I find that when a Pull request is submited to developer branch, it will trigger jenkins build, and also the developer branch, but the feature branch also trigger the jenkins job. So how I should write the Ref Spec? Can anyone help me! Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论