@@ -22,6 +22,8 @@ void Build()
22
22
XBuild ( "./src/GitVersion.sln" , new XBuildSettings ( )
23
23
. SetConfiguration ( configuration )
24
24
. WithProperty ( "POSIX" , "True" )
25
+ . WithProperty ( "GitVersion_NuGetVersion" , nugetVersion )
26
+ . WithProperty ( "GitVersion_SemVer" , semVersion )
25
27
. SetVerbosity ( Verbosity . Verbose )
26
28
) ;
27
29
}
@@ -31,6 +33,8 @@ void Build()
31
33
. SetConfiguration ( configuration )
32
34
. SetPlatformTarget ( PlatformTarget . MSIL )
33
35
. WithProperty ( "Windows" , "True" )
36
+ . WithProperty ( "GitVersion_NuGetVersion" , nugetVersion )
37
+ . WithProperty ( "GitVersion_SemVer" , semVersion )
34
38
. UseToolVersion ( MSBuildToolVersion . VS2015 )
35
39
. SetVerbosity ( Verbosity . Minimal )
36
40
. SetNodeReuse ( false ) ) ;
@@ -48,23 +52,13 @@ Task("Version")
48
52
. IsDependentOn ( "DogfoodBuild" )
49
53
. Does ( ( ) =>
50
54
{
51
- if ( ! BuildSystem . IsLocalBuild )
55
+ GitVersion ( new GitVersionSettings
52
56
{
53
- GitVersion ( new GitVersionSettings
54
- {
55
- UpdateAssemblyInfo = true ,
56
- LogFilePath = "console" ,
57
- OutputType = GitVersionOutput . BuildServer ,
58
- ToolPath = @"src\GitVersionExe\bin\Release\GitVersion.exe"
59
- } ) ;
60
-
61
- version = EnvironmentVariable ( "GitVersion_MajorMinorPatch" ) ;
62
- nugetVersion = EnvironmentVariable ( "GitVersion_NuGetVersion" ) ;
63
- preReleaseTag = EnvironmentVariable ( "GitVersion_PreReleaseTag" ) ;
64
- semVersion = EnvironmentVariable ( "GitVersion_LegacySemVerPadded" ) ;
65
- milestone = string . Concat ( "v" , version ) ;
66
- }
67
-
57
+ UpdateAssemblyInfo = true ,
58
+ LogFilePath = "console" ,
59
+ OutputType = GitVersionOutput . BuildServer ,
60
+ ToolPath = @"src\GitVersionExe\bin\Release\GitVersion.exe"
61
+ } ) ;
68
62
GitVersion assertedVersions = GitVersion ( new GitVersionSettings
69
63
{
70
64
OutputType = GitVersionOutput . Json ,
@@ -75,7 +69,6 @@ Task("Version")
75
69
nugetVersion = assertedVersions . NuGetVersion ;
76
70
preReleaseTag = assertedVersions . PreReleaseTag ;
77
71
semVersion = assertedVersions . LegacySemVerPadded ;
78
- milestone = string . Concat ( "v" , version ) ;
79
72
} ) ;
80
73
81
74
Task ( "NuGet-Package-Restore" )
@@ -106,7 +99,7 @@ Task("Zip-Files")
106
99
. IsDependentOn ( "Run-NUnit-Tests" )
107
100
. Does ( ( ) =>
108
101
{
109
- Zip ( "./build/NuGetCommandLineBuild/Tools/" , "GitVersion_" + nugetVersion + ".zip" ) ;
102
+ Zip ( "./build/NuGetCommandLineBuild/Tools/" , "build/ GitVersion_" + nugetVersion + ".zip" ) ;
110
103
} ) ;
111
104
112
105
Task ( "Create-Release-Notes" )
@@ -147,7 +140,6 @@ Task("Upload-AppVeyor-Artifacts")
147
140
AppVeyor . UploadArtifact ( "build/NuGetTaskBuild/GitVersionTask." + nugetVersion + ".nupkg" ) ;
148
141
AppVeyor . UploadArtifact ( "build/GitVersionTfsTaskBuild/gittools.gitversion-" + semVersion + ".vsix" ) ;
149
142
AppVeyor . UploadArtifact ( "build/GitVersion_" + nugetVersion + ".zip" ) ;
150
- AppVeyor . UploadArtifact ( "build/GitVersionTfsBuildTask_" + nugetVersion + ".zip" ) ;
151
143
} ) ;
152
144
153
145
0 commit comments