How to pass arguments between assembly configuration steps in team city?

I am new to the city of the team, and I just started using the existing city configuration. I have a requirement to transfer the build number (ex: - 7.6.0.4) generated in the build configuration (01 Build Services Installer) to another build configuration (03 deploy the installers). The assembly number is created at run time, so it will change for each assembly. How can I pass this build number to one of the build steps in the "install installers" setting? I use powershell to run my script, and I need to pass this assembly number to this powershell script.

Thanks in advance.

Team City screenshot

+5
source share
1 answer

The usual way to achieve this in TeamCity is to determine the dependency between assemblies, then you can access all the parameters from previous collections.

  • Define the snapshot dependency between Build Services Installers and Deploying Installers (if not already done)
  • Now you can access all the parameters of the first build in Deploy Installers by typing% dep. - Autocomplete tells you the rest.
+4
source

Source: https://habr.com/ru/post/1236605/


All Articles