Jenkins矩阵项目组合过滤器-如何配置Groovy表达式? [英] Jenkins matrix project combination filter - how to configure the groovy expression?

查看:304
本文介绍了Jenkins矩阵项目组合过滤器-如何配置Groovy表达式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有两个轴的Jenkins多配置项目:

I have a Jenkins multi configuration project with two axis:

  1. sbBrowser的值:

firefox
ie
chrome

  • envConfig的值:

    pp1
    pp2
    pp3
    staging
    systemtest
    

  • 我必须创建组合过滤器,以仅在所有envConfig上与sbBrowser = firefox一起运行.

    I have to create combination filter to run only with sbBrowser = firefox on all of the envConfig.

    如何构建表达式?

    类似的东西:

    sbBrowser=="firefox" && envConfig=="pp1" "pp2" "pp3" "staging" "systemtest"
    

    推荐答案

    如果希望仅针对Firefox运行,则在envConfig的所有值上,为什么要指定envConfig集合的成员?只需执行(sbBrowser=="firefox"),它将对envConfig的所有成员仅在Firefox上运行.

    If you want it to run only for firefox, on all values of envConfig, then why specify members of the envConfig set? Just do (sbBrowser=="firefox") and it will run only on Firefox, for all members of envConfig.

    这篇关于Jenkins矩阵项目组合过滤器-如何配置Groovy表达式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆