Put current build number of release configuration in night build configuration?

We just started using TeamCity as a continuous integration server. There is a problem that we are trying to solve now:

We have a release configuration, it has build versions, such as: 1.0.0. {0} We also have a "nightly build" configuration, whose build number is 1.0.0.0. {Build.vcs.number.1}

So, the first 2 digits are fine, Major + Minor version. The third should be manually configured as well in accordance with our process (rarely, though). But, as you can see, the latter increases with each release.

Question: how do I get TC to copy the current fourth digit (or all of them) of "release" to the "night build"?

+3
source share
2 answers

One way to do this in 4.5 is

  • You have a snap to snapshot feature in release.
  • Find the internal release assembly identifier.
  • use the build number format at night, which looks like

% dep.releaseid.system.build.number%. {Build.vcs.number.1}

where releaseid is the identifier found in step 2. This will replace all %%% with the build number from the release.

TeamCity 4.5 Docs for dependency properties explains this and shows how to find the internal identifier.

+3
source

script, . . , . , script.

+1

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


All Articles