That comes close to working. But doesn't allow me to keep using auto
builds based on polling for all branches.
I setup a test build that used COMMIT_TO_BUILD as a parameter and set it
for the "Branches to build". When I used values like "origin/stable/1.5"
it would correctly set the GIT_BRANCH e
Check the Parameterized build. Enter a variable name, like VARIABLE. Then
specify the "Branches to build" as a $VARIABLE.
You might want to have the default value of the variable be "master" or "*"
You'll have to figure out how your build process tells a gold build apart from
a normal build.
We have a build that is working fine with git to monitor and build all
branches in our repository.
- For Branches to build we use the default of: '**'
- We skip internal tagging and we don't do any merging operations.
To release a version of our product, we tag a git commit on one of our
stable b