I am looking for an option for multibranch pipeline where Jenkinsfile should disable/enable a Jenkins UI parameter based on git branch name.
parameters {
string(name: 'Cloud', defaultValue: 'AWS', description: 'Cloud Type')
}
But this will show parameter always, I want to show this option only for 'main' branch but not for 'test' branch. How to achieve this? Is this possible to achieve without using 'Active Choices' plugins? Thanks in advance