Build configuration not picking project parameter
Answered
There is a project P which has 'default branch' parameter set with some feature branch and I then project P has a build configuration B where I have left the 'default branch' as blank .
Now when I run the build configuration B I was expecting branch should be picked as the feature branch which I have set on project level but by default it always pick 'master' branch. Can you please suggest what I might be doing wrong here?
Please sign in to leave a comment.
Hi, short answer is: you should explicitly use your parameter in the VCS root of your build configuration.
Let me elaborate. For example, I have these parameters defined in a build template:
And then I use these parameters in the attached VCS root. This way, the parameters' values are taken into account by the VCS root:
Your case is quite similar, the only difference is that your parameter is defined on a project level. Parameters from the project level are inherited by this project's build configurations. You need to modify the VCS root to actually take this parameter into account.