简体   繁体   English

避免报告特定 Jenkins 作业的已验证/代码审查标志

[英]Avoid report to verified/code-review flag for a specific Jenkins Job

I'm using Jenkins with gerrit trigger.我正在使用带有 gerrit 触发器的 Jenkins。

We have a global gerrit trigger configuration that says that if a build is marked as NOT_BUILT the plugin should overwrite verified and code-review flag on gerrit with 0.我们有一个全局 gerrit 触发器配置,它表示如果构建被标记为 NOT_BUILT,则插件应该用 0 覆盖 gerrit 上的已验证和代码审查标志。

I can't change the default configuration of the plugin but for a certain job I need to avoid that overwrite in case the build is in NOT_BUILT status.我无法更改插件的默认配置,但对于某些工作,我需要避免覆盖,以防构建处于 NOT_BUILT 状态。

Is there an easy way to achieve that without installing additional plugins?有没有一种简单的方法可以在不安装额外插件的情况下实现这一目标?

I suppose you don't want to "silence" the job (use the "Silent Mode" option), right?我想你不想让工作“静音”(使用“静音模式”选项),对吧?

You could try to use the "Skip Vote" option:您可以尝试使用“跳过投票”选项:

在此处输入图片说明

But I'm really not sure if it will work.但我真的不确定它是否会起作用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM