[英]Can we fail build in jenkins after jfrog xray-scan?
Is there a way we can fail a build in jenkins after xray scan and getting an unapproved license violation from jfog xray (No pipeline script)?在 X 射线扫描并从 jfog xray 获得未经批准的许可证违规(无管道脚本)后,我们有没有办法使 jenkins 中的构建失败?
If the Xray service has been defined with an action under the watch to fail a build upon detecting a vulnerability or a license violation, it will fail the build.如果 Xray 服务已被定义为在检测到漏洞或违反许可证时使构建失败,则它将导致构建失败。 Please check, Creating Xray policies: Automatic actions .
请检查, 创建 X 射线策略:自动操作。
In order to integrate your Jenkins (or any CI tool), you can follow this wiki page .为了集成您的 Jenkins(或任何 CI 工具),您可以关注此 wiki 页面。
As can be seen from the link provided, in order to integrate between the CI and Xray a pipeline job is required ( declarative or scripted ).从提供的链接可以看出,为了在 CI 和 Xray 之间进行集成, 需要管道作业( 声明式或脚本式)。
I hope this helps and clarifies more.我希望这有助于并澄清更多。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.