branch name

Issue #4 resolved
Laurent Kempé created an issue

To be able to run a TeamCity builds it would really be great to have ${branch.name}

Comments (9)

  1. Alexander Renteln

    Hi Laurent, I will look into it. One commit can be on more than one branch. I could either just take the first (alphabetically), do a list or let the user decide which one he wants. Perhaps like this:

    ${branch.name.first}
    ${branch.name.last}
    ${branch.name.list}
    

    I have to try it out and think about what would be best.

    Best regards, Alex

  2. Laurent Kempé reporter

    Hi Alexander

    Good point! It is true that one push can involve more than one branch! I didn't thought of it because my workflow currently doesn't use that possibility.

    In the case of multiple branches it would be great to be able to specify to trigger multiple http requests. Maybe we would also need to be able to specify another url according to the name of the branch.

    Best Regards, Laurent

  3. Laurent Kempé reporter

    Hi Alexander

    I just realized using Hipchat integration in stash that when you push toward two branches in one push then stash will output two messages in Hipchat, which is similar to my proposal to be able to specify to trigger multiple http requests.

    Best regards, Laurent

  4. Yasuharu NAKANO

    Hi, I really want this feature in order to build only a updated branch in Jenkins by using buildWithParameters. I'm looking forward to seeing it in a next release ;-)

  5. Alexander Renteln

    sorry, totally forgot about this... so much to do at work... but I am trying to do it in the next few days... thanks for all your comments :-)

  6. Alexander Renteln

    I prepared something: Now every RefChange will trigger all the HookUrls. The following variables are available:

    • refChange.refId (e.g. refs/heads/master)
    • refChange.fromHash
    • refChange.toHash
    • refChange.type (UPDATE, DELETE, and ADD)

    You can find a package of the SNAPSHOT in the download section. I will release it in the following days if everything works.

    Any feedback is appreciated! :-)

    Btw: Here is the commit: https://bitbucket.org/aeffle/stash-http-get-post-receive-hook/commits/e9c764bd904edd5128f6094cd87bb4e1b5091102?at=devel

  7. Log in to comment