与Jenkins,Jmeter和Sonarqube在不同的服务器上创建CICD管道
我的雇主为我提供了3个不同的RHEL服务器,每个服务器分别与Jenkins,Jmeter和Sonarqube一起安装。我必须创建一个集成所有这些组件的CICD管道。谁能指向我应该如何做到这一点的正确方向?这是我第一次与Jenkins Pipelines合作,因此,如果以前已经问过,很抱歉。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首先,熟悉 nofollow noreferrer“> jenkins”通过SSH,JNLP或WebSocket将所谓的“构建代理”连接到Jenkins,以便在Jmeter Master上触发的作业将在构建代理上调用,并且状态和结果将通过网络返回
sh
sh如果要使用要在构建仪表板上创建性能趋势图表并标记为不稳定或失败的标记构建,如果无法满足SLA,则可以为此添加一个阶段:
对于Sonarqube,有太多可能的选项,请查看页面,然后选择与您的项目/语言匹配的一个页面
First of all get familiarized with Jenkins Distributed Builds, it's possible to connect so called "build agent" to Jenkins via SSH, JNLP or WebSocket so the job triggered on JMeter Master will be invoked on the build agent and the status and result will be returned back over the network
JMeter is a pure Java application which can be executed as a command line application as
sh
pipeline step so it would be something like:if you want to use Performance Plugin to create performance trend charts on the build dashboard and mark build as unstable or failed if SLAs are not met you can add a stage for this as well:
For Sonarqube there are too many possible options, check out SonarScanner for Jenkins page and choose the one which matches your project/language