Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to notify TeamCity on push to Stash

Adrian Moerchen
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 30, 2014

Hi,

Does anyone know, if it is possible to notify TeamCity about new pushs to Stash via a web hook?

I did a search for this, but can't find any concrete information.

Thanks,

Adrian

4 answers

1 accepted

2 votes
Answer accepted
TimP
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 11, 2014

Hi Adrian,

I'd recommend installing the HTTP GET post-receive hook for Stash and using it to trigger a build using TeamCity's httpAuth build trigger REST API.

cheers,

Tim

0 votes
Manojkumar February 21, 2016

Hi,

We have a stash and teamcity setup enabled, i want to trigger build for each commit in stash, i have enabled the post receive webhook in stash. But i am not sure on how to add the Teamcity URL to the stash hook. 

My Team City VCS root name looks like : RMP_Hello
VCS root ID :  RmpCore_RmpHello

 I tried adding like this https://teamcity-2.dts.fm.rbsgrp.net/app/rest/debug/vcsCheckingForChangesQueue?locator=vcsRoot:+RmpCore_RmpHello

Please help me with correct URL on how to add it to stash

 

0 votes
Deleted user February 13, 2015

Together with the HTTP GET post-receive hook one can probably use the VCSUPDATE teamcity plugin

0 votes
Deleted user February 13, 2015

This plugin TeamcityTriggerHook from Jorge Costa is a more precise answer to the need. From the source code I understand that the plugin allows to make teamcity evaluate changes on one vcs root :  by using this end point on teamcity /app/rest/debug/vcsCheckingForChangesQueue?locator=vcsRoot:" + vcsRoot

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events