简体   繁体   English

我们可以在 jfrog xray-scan 后构建 jenkins 失败吗?

[英]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.

相关问题 构建完成后,我们可以将Jenkins作业中存在的Python脚本的输出作为邮件发送吗? - Can we send the output of the Python script that is present in Jenkins job as mail after the Build is completed? 如何为上传到 Jfrog Artifactory 的每个工件触发 Jenkins 管道构建 - How to trigger a Jenkins pipeline build for every artifact uploaded to Jfrog Artifactory Jenkins构建失败后如何在Github上打开问题 - How to open an issue on Github after a Jenkins build fail 我们可以在Jenkins参数化构建中定义变量吗 - Can we define a variable inside a Jenkins parameterized build Jenkins传递或失败构建外部可执行文件 - Jenkins pass or fail build on external executable jenkins控制台中的“ Fail”关键字应使jenkins构建失败 - “Fail” keyword in jenkins console should fail the jenkins build 基于构建输出和电子邮件失败的日志部分的Jenkins构建失败 - Fail Jenkins Build based on build output and email failed log sections 添加构建后动作Sonar会导致Jenkins构建失败 - Adding Post-build Actions Sonar causes Jenkins build to fail 在 Jenkins 中,我们可以删除旧版本的构建工件,但保留构建详细信息/日志吗? - In Jenkins, can we delete build artifacts for older builds, but keep build details/logs? Jenkins maven 构建在 linux 机器上失败 - Jenkins maven build fail in linux machine
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM