How to get a parameter depend of other parameter in Hudson or Jenkins

前端 未结 5 766
天涯浪人
天涯浪人 2020-12-15 08:08

I have a problems with Hudson because my job needs two params for build the first specifies the environment and can be one of DEV, QA, PROD, and the second is a specific ser

5条回答
  •  甜味超标
    2020-12-15 09:11

    It appears that Jenkins loads the list of parameters to select when you open the "build project" page. There's no callback happening when selecting a parameter either.

    In that case it will be difficult to restrict the second parameter based on the first one without javascript and a custom plugin.

    I also looked at those:

    • https://wiki.jenkins-ci.org/display/JENKINS/Extended+Choice+Parameter+plugin
    • https://wiki.jenkins-ci.org/display/JENKINS/Extended+Choice+Parameter+Script+plugin
    • https://wiki.jenkins-ci.org/display/JENKINS/Extensible+Choice+Parameter+plugin

    I would ask the jenkins user list for more information.

提交回复
热议问题