File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,14 @@ Task("DownloadGitHubReleaseArtifacts")
63
63
. ReadAllLines ( "./releaseArtifacts/artifacts" )
64
64
. Select ( l => l . Split ( ':' ) )
65
65
. ToDictionary ( v => v [ 0 ] , v => v [ 1 ] ) ;
66
+
67
+ // Have had missing artifacts before, lets fail early in that scenario
68
+ if ( ! artifactLookup . ContainsKey ( "NuGetRefBuild" ) ) { throw new Exception ( "NuGetRefBuild" artifact missing) ; }
69
+ if ( ! artifactLookup . ContainsKey ( "NuGetCommandLineBuild" ) ) { throw new Exception ( "NuGetCommandLineBuild" artifact missing) ; }
70
+ if ( ! artifactLookup . ContainsKey ( "NuGetTaskBuild" ) ) { throw new Exception ( "NuGetTaskBuild" artifact missing) ; }
71
+ if ( ! artifactLookup . ContainsKey ( "NuGetExeBuild" ) ) { throw new Exception ( "NuGetExeBuild" artifact missing) ; }
72
+ if ( ! artifactLookup . ContainsKey ( "GemBuild" ) ) { throw new Exception ( "GemBuild" artifact missing) ; }
73
+ if ( ! artifactLookup . ContainsKey ( "GitVersionTfsTaskBuild" ) ) { throw new Exception ( "GitVersionTfsTaskBuild" artifact missing) ; }
66
74
} ) ;
67
75
68
76
Task ( "Publish-NuGetPackage" )
@@ -152,6 +160,7 @@ Task("Publish-Gem")
152
160
153
161
Task ( "Publish-VstsTask" )
154
162
. IsDependentOn ( "DownloadGitHubReleaseArtifacts" )
163
+ . WithCriteria ( ( ) => ! tag . Contains ( "-" ) ) // Do not release pre-release to VSTS
155
164
. Does ( ( ) =>
156
165
{
157
166
var returnCode = StartProcess ( "cmd" , new ProcessSettings
You can’t perform that action at this time.
0 commit comments