Build Number and Snapshot dependencies

Hi

How can i add the same Build number from a parent build configuration to Shapshot dependent child build configuration?

If some one commits to an unrleated project, the build number the the snapshot dependent builds will have a different number.

my current build number format is say {0} (1.1.0.{build.vcs.number})

If this possible?

Cheers

Alan

8 comments
Comment actions Permalink

There is no way to reference build number of the parent build in the child build (because parent build is not yet started), however it is possible to reference child build number in the parent build.

Please take a look here: http://www.jetbrains.net/confluence/display/TCD4/How+To...#HowTo...-Havethesamebuildnumberforsamesnapshotbuildsofdifferentbuildconfigurations

0
Comment actions Permalink

Thanks Pavel

That will do me

Cheers

Alan

0
Comment actions Permalink

Hi Pavel

I'm using %dep.bt87.system.build.number% in my build number format. Instead of showing the build number for that build configuration it is actually saying %dep.bt97.system.build.number%

any suggestion?

Cheers

Alan

0
Comment actions Permalink

Could you please check that build configuration id is correct. If so please send content of the build number format text field.

0
Comment actions Permalink

Hi pavel

the URI of the the build configuration i want to use http://buildserver/viewType.html?buildTypeId=bt87&tab=buildTypeStatusDiv

And the Build number format of the other pBuild config : %dep.bt87.system.build.number%

Thanks for your help

0
Comment actions Permalink

Are you sure that there is a snapshot dependency configured to build configuration with id bt87?

0
Comment actions Permalink

ok

No it isn't it's an artifact dependecy. Sorry my mistake. i thought this would be valid for all builds.

Thanks anyway

0
Comment actions Permalink

No this works for snapshot dependencies only, feel free to add feature request to our tracker.

0

Please sign in to leave a comment.