File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/GitVersionCore/BuildServers Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -13,12 +13,13 @@ public override bool CanApplyToCurrentContext()
13
13
14
14
public override string GenerateSetVersionMessage ( VersionVariables variables )
15
15
{
16
+ var buildNumber = Environment . GetEnvironmentVariable ( "APPVEYOR_BUILD_NUMBER" ) ;
16
17
var restBase = Environment . GetEnvironmentVariable ( "APPVEYOR_API_URL" ) ;
17
18
18
19
var request = ( HttpWebRequest ) WebRequest . Create ( restBase + "api/build" ) ;
19
20
request . Method = "PUT" ;
20
21
21
- var data = string . Format ( "{{ \" version\" : \" {0}\" }}" , variables . FullSemVer ) ;
22
+ var data = string . Format ( "{{ \" version\" : \" {0}.build.{1} \" }}" , variables . FullSemVer , buildNumber ) ;
22
23
var bytes = Encoding . UTF8 . GetBytes ( data ) ;
23
24
request . ContentLength = bytes . Length ;
24
25
request . ContentType = "application/json" ;
You can’t perform that action at this time.
0 commit comments