Build Configuration not using same revision from snapshot dependency

I have a root level parameterized VCS Root

GitVcsRoot({
name = "Parameterized VCS Root"
url = "https://github.com/%env.GITHUB_ORG%/%env.REPO_NAME%.git"
branch = "%default-branch%"
branchSpec = "+:*"
...
}

A project then configures the parameters above and contains two build configurations

Build
Deploy

Both build configurations attach to the Parameterized VCS Root with the same parameters.

Deploy has a snapshot and artifact dependency on Build with Enforce revisions synchronization enabled.

If I generate a Build from a branch then go to deploy and click the ellipses and choose the artifact from a branch and click run it uses the default master branch. My understanding is that it should use the same revision and branch from the artifact in the same build chain. What am I missing?

 

Parameters from the bad deploy log:

teamcity.build.branch refs/heads/master
teamcity.build.vcs.branch.ParamerizedVcsRoot refs/heads/master
teamcity.git.build.vcs.branch.Paramerized_VCS_Root refs/heads/master
dep.test.teamcity.build.branch refs/heads/test-teamcity-script
dep.test.teamcity.build.vcs.branch.ParamerizedVcsRoot refs/heads/test-teamcity-script
dep.test.teamcity.git.build.vcs.branch.Paramerized_VCS_Root refs/heads/test-teamcity-script

 

I have also tried setting teamcity.build.branch = %dep.test.teamcity.build.branch%

This will tag the build under the correct branch but still pull the default master branch.

0

Please sign in to leave a comment.