How can I disable default automatic trigger build by dependencies?
Hi,
I have two build configurations (A and B). I need use current build number of build A on build B.
To resolve this, I configured A as dependence of B, but now always when build A running, build B is queued to build.
How can I disable this default behavior? There are another way to use a build number of other build?
Thanks,
Phelipe Perboires.
Please sign in to leave a comment.
Hello,
as an option, you can manually set buildNumber in buildB by getting the value from buildA. To do this, you need to retrieve current (latest) buildNumber from buildA using REST API:
http://tc/app/rest/builds/buildType:<myBT>/number
(see http://confluence.jetbrains.com/display/TCD8/REST+API#RESTAPI-BuildConfigurationAndTemplateSettings for details)
and then set this value for current build via service message:
see http://confluence.jetbrains.com/display/TCD8/Build+Script+Interaction+with+TeamCity#BuildScriptInteractionwithTeamCity-ReportingBuildNumber for details.