Run build chain after change configuration parameter in one of them
Hello!
I have 3 builds.
1)Backend build - A (builds docker image for backend)
2)Frontend build - B (builds docker images fro frontend)
3)Deploy build - C (deploy containers using SSH)
Build C has snapshot dependency of A and B in the same time and VCS trigger with setted checkbox "Trigger a build on changes in snapshot dependencies". A and B has their own repositories, so when something change in one of them all build chain working as expected and C deploys new images
But for building docker images in A or B I may use different config parameters, wherein code source may doesnt change.
So I want to rebuild all build chain, after change some config parameters, how I can do this?
Now to do this I must change config parameter in A or B build and make dummy commit to appropriate repository of A or B build
Thanks
Please sign in to leave a comment.
Hi Paul,
if by "config parameter" you mean TeamCity build parameters, you can manually trigger a custom run of C and modify the parameters there for A and B. To accomplish that, do the following:
On C, next to the "Run" button, click on the ellipsis "…". A dialog will show up.
Select the "Parameters" tab.
Add parameters using reverse dependency parameters: https://www.jetbrains.com/help/teamcity/predefined-build-parameters.html#PredefinedBuildParameters-OverridingDependenciesProperties
For example, add "reverse.dep.A.myParam" with value "new" to modify A's "myParam" to use "new".
If you mean that you need to modify some config files, you might want to do the same but look at setting up the "File Content Replacer" build feature: https://www.jetbrains.com/help/teamcity/file-content-replacer.html