Different parameters for branches in same build config

Answered

Hello,

is it possible to have different parameters, for develop and feature branches in the same build config ?

Java 8 default on develop branch and java 11 on feature branches.

 

/Anders

 

2 comments
Comment actions Permalink

Any hints ?
This can be solved with a new build, but maybee not always so convenient.

0
Comment actions Permalink

Hi Anders,

You can use a command-line build step with a script which overrides certain parameter values based on some conditions. Say, you can use a branch name as a condition. You can override parameter values with the help of service messages. But I guess it might be easier to just configure two separate build configurations.

0

Please sign in to leave a comment.