If you need to have a fallback for your git branch selection in Jenkins, for example in case you're selecting branch for top project which has more subprojects. You can use Git Chooser Alternative Plugin. After installing it in Jenkins, you have to setup your Source Code Management section as follows:
Add two (or more) branches in to section "Branches to build". In example below, I'm using placeholders "primaryBranch" as a primary branch and "branch" as fallback one.
Then set strategy as "Alternative" and you're done!
Add two (or more) branches in to section "Branches to build". In example below, I'm using placeholders "primaryBranch" as a primary branch and "branch" as fallback one.
Then set strategy as "Alternative" and you're done!
i have always struggled with these kind of technical things i am glad i got to stumble on your page. thank you for updating. keep posting it gives me a sense of calm that there is sonmeone to help out there
ReplyDeleteWow, it's a great write-up. To Hire a programmer initially, I also struggled a lot. Gradually I realised it's better to have expert assistance. Fortunately, the expert I got was from an emerging tech-based freelance platform,Eiliana.com who assisted me perfectly. I hired the right human resource, and I'm thankful to them.
ReplyDelete