Problem with run build on Bitbucket tag - Failed to collect changes

I want to run build on tags commits so I set

DefaultBranch parameter is set to value of tag in Bitbucket 

But on build page default branch is not displayed.

 

 Only my tag is visible as Active, but when I run build on this tag as branch I get:
Failed to collect changes, error: Cannot find revision of the default branch '***5ad8bbb_ApiTests_uat' of vcs root ABC', VCS root: "ABC" {instance id=78571, parent internal id=13588, parent id=ABC, description: "ssh://git@bitbucket*****.git#***5ad8bbb_ApiTests_uat"}

Why teamcity cannot find my git tag ?
 


 

0
1 comment

Hi Lukasz,

It's difficult to tell what caused the problem without seeing the full error message. Could you please collect the following data and upload it to https://uploads.jetbrains.com/? Once done, please let me know the upload ID.

  • The entire build log downloaded via the TeamCity UI.
  • The following server-side logs:
    • teamcity-vcs.log
    • teamcity-vcs-states.log
  • The output of the following command executed against the target repository: git ls-remote | grep refs/tags/DEFAULT_BRANCH. Please replace “DEFAULT_BRANCH” with the name of the tag that you used for the Default branch in your setup. If you work on Windows, you can use the OS-specific alternatives for grep like FINDSTR.
0

Please sign in to leave a comment.