bitbucket ref-specs for teamcity

Raj Kumar April 2, 2018

Hi,

I have been trying to create an automated trigger for all bitbucket pull requests created in teamcity.

Teamcity keeps polling bitbucket for every 60 seconds.

I have extensively used github in past where I need to only specify refs/pull/*/head in my branch specification and all pull requests will automatically start building.

Now the above doesn't seem to be the case with bitbucket cloud. Existing VCS setting doesn't seem to pick up any pull requests with the following ref specs

 

+:refs/pull-requests/*
+:ref/pull-requests/*/from
+:ref/pull-requests/*/merge
+:ref/pull/*/from
+:ref/pull/*/merge
+:ref/pull/*/head
+:refs/pull-requests/*/from
+:refs/pull-requests/*/merge
+:refs/pull/*/from
+:refs/pull/*/merge
+:refs/pull/*/head

 

I am not sure if I am doing anything wrong in here. 

Note: Teacmity is able to identify and execute my entire code after commit is successful. I am trying to check if my build is successful even before commiting. Hence I have requirement to run on pull requests.

 

Regards

Raj

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events