A-Sharabiani
A-Sharabiani

Reputation: 19329

build.number is not fully resolved

Description

In TeamCity, I set the {my project} > General Settings > Build number format to the parameter %build.number%. Apparently TeamCity cannot resolve this parameter and I get #??? as my build number and also the warning message below:

Parameter "build.number=%build.number%" is not fully resolved, using as is.

enter image description here

Question

How can I use this parameter? Is there any special settings for that?

Basically I need the version of my project as my build number

Upvotes: 0

Views: 2427

Answers (1)

Lasse V. Karlsen
Lasse V. Karlsen

Reputation: 391336

The name of that field is "build.number".

Hence, you've said that the value of "build.number" should be the value of "build.number". TeamCity is thus rightly confused.

You can use %build.number% in the various build steps for a build configuration to refer to this field but when you're defining that field, you must use something else.

Upvotes: 2

Related Questions