github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -


I have a team city build project with Gitbab VCS route, I have been triggered for both / head on PR and / Merge the referee. The annoying thing is that you can not do anything useful with the merged hash - it is not present in Gitobb. I want to exclude newsgate packages with head in gutub comet situations in the version number along with Hewash (Newsaging 7) for the music build, but against head hash.

However, I can not see a way to get the head hashes while constructing that merge. I just want to head because it's useless - we only care about merge.

(PR - Pull Request)

This command works reliably while running One on / merge is

  git log --no-merge -1 ---- = '% h'    

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

ios - Replace text in UITextView run slowly -