[英]Jenkins: Gerrit event trigger plugin
Need some help.需要一些帮助。 Do we have any option to filter specific users for Gerrit event plugin.
我们是否可以选择过滤 Gerrit 事件插件的特定用户。 currently its triggering for all which i don't want to trigger for every one in the team.
目前它触发了我不想为团队中的每个人触发的所有内容。
You can't configure the Gerrit Trigger plugin to trigger only for some specific users but you can use a workaround to accomplish something like this.您不能将 Gerrit Trigger 插件配置为仅针对某些特定用户触发,但您可以使用解决方法来完成类似的操作。
When the job is triggered by Gerrit Trigger plugin some environment variables are automatically set.当作业由 Gerrit Trigger 插件触发时,会自动设置一些环境变量。 The more useful in your case are:
在您的情况下更有用的是:
You can check some of these variables and abort the build if he/she isn't one of the specific users.如果他/她不是特定用户之一,您可以检查其中一些变量并中止构建。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.