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