Is it possible to select a profile based on what the current git branch is?
For example, if you are in the master branch, it selects the 'production' profile. If it is the develop branch, it selects the 'development' profile.
I found the mavanagaiata plugin which provides the mvngit.branch
property but it can not be used in the <profiles>
section.
Is something like this possible? Or are there better ways? I want an easy way to automatically select the correct profile depending on the branch being build.