Pulling value from database column in teamcity
Hi,
I currently have an issue where I need to pull a GUID from a database column (which I am accessing through remote sqlcmd in a docker container), and then somehow use that value later on in my build chain. Is there a way in TeamCity to, after querying for that value, pull it into TeamCity so that I can use it?
Thanks
Please sign in to leave a comment.
Once you pull the parameter, you can export it as a build parameter, then use it within the chain as a dependency parameter. More information here: https://confluence.jetbrains.com/display/TCD18/Build+Script+Interaction+with+TeamCity#BuildScriptInteractionwithTeamCity-AddingorChangingaBuildParameter
and https://confluence.jetbrains.com/display/TCD18/Predefined+Build+Parameters#PredefinedBuildParameters-DependenciesProperties