Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

Build the branch that was pushed in SCM triggered build



  • Is there a way to make the auto Git-triggered build use the branch that actually triggered the build?
    It looks like you can only trigger a preset deployment plan with the branch predefined, and not make it build the relevant branch for that trigger.

    Basically I'm trying to set up a deployment plan that can attempt to build and run unit tests every time someone pushes to any branch.

    Is this possible?

    Product: BuildMaster
    Version: 4.7.4



  • You might be able to get away with this with some git trickery, i.e. you can have a script at the beginning of the deployment plan that lists the remote branches and gets the latest commit time for each one, and writes the branch name out to a file (or something like that). Then you can use the "Set Variable Value from File" action to save that value into a BuildMaster variable, and reference that in the "Get Latest" action.

    Hope this helps :)



Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation