How to pass Arguments between build configuration steps in team city?

血红的双手。 提交于 2019-12-22 07:58:10

问题


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

Thanks in advance.

Team City Screen shot


回答1:


The regular way to achive this in TeamCity would be to define a Dependency between the builds, then you can access all Parameters from previous builds.

  1. Define a Snapshot dependency between "Build Services Installers" and "Deploy Installers" (if not already done)
  2. You can now access all Parameters of the first build in "Deploy Installers" by typing %dep. - Autocomplete will tell you the rest.


来源:https://stackoverflow.com/questions/33869384/how-to-pass-arguments-between-build-configuration-steps-in-team-city

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!