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
Please sign in to leave a comment.
Any hints ?
This can be solved with a new build, but maybee not always so convenient.
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.