File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ stages:
8383 - script : ' dotnet tool install --global Cake.Tool'
8484 displayName : ' Install Cake Tool'
8585 failOnStderr : true
86- - script : ' dotnet cake --target=PushAzureArtefacts --AzureArtefactsOrganization=RehanSaeed --Verbosity=Diagnostic'
86+ - script : ' dotnet cake --target=PushAzureArtefacts --AzureArtefactsOrganization=RehanSaeed --ArtefactsDirectoryPath=$(Agent.BuildDirectory)\Windows -- Verbosity=Diagnostic'
8787 displayName : ' Dotnet Cake PushAzureArtefacts'
8888 failOnStderr : true
8989 - deployment : GitHub
@@ -105,7 +105,7 @@ stages:
105105 - script : ' dotnet tool install --global Cake.Tool'
106106 displayName : ' Install Cake Tool'
107107 failOnStderr : true
108- - script : ' dotnet cake --target=PushGitHub --GitHubUserName=$(GitHubUserName) --GitHubPassword=$(GitHubPersonalAccessToken) --Verbosity=Diagnostic'
108+ - script : ' dotnet cake --target=PushGitHub --GitHubUserName=$(GitHubUserName) --GitHubPassword=$(GitHubPersonalAccessToken) --ArtefactsDirectoryPath=$(Agent.BuildDirectory)\Windows -- Verbosity=Diagnostic'
109109 displayName : ' Dotnet Cake PushGitHub'
110110 failOnStderr : true
111111 - deployment : NuGet
@@ -128,6 +128,6 @@ stages:
128128 - script : ' dotnet tool install --global Cake.Tool'
129129 displayName : ' Install Cake Tool'
130130 failOnStderr : true
131- - script : ' dotnet cake --target=PushNuGet --NuGetApiKey=$(NuGetApiKey) --Verbosity=Diagnostic'
131+ - script : ' dotnet cake --target=PushNuGet --NuGetApiKey=$(NuGetApiKey) --ArtefactsDirectoryPath=$(Agent.BuildDirectory)\Windows -- Verbosity=Diagnostic'
132132 displayName : ' Dotnet Cake PushNuGet'
133133 failOnStderr : true
Original file line number Diff line number Diff line change @@ -15,6 +15,10 @@ var buildNumber =
1515 AppVeyor . IsRunningOnAppVeyor ? AppVeyor . Environment . Build . Number :
1616 EnvironmentVariable ( "BuildNumber" ) != null ? int . Parse ( EnvironmentVariable ( "BuildNumber" ) ) :
1717 0 ;
18+ var artefactsDirectoryPath =
19+ HasArgument ( "ArtefactsDirectoryPath" ) ? Argument < string > ( "ArtefactsDirectoryPath" ) :
20+ EnvironmentVariable ( "ArtefactsDirectoryPath" ) != null ? EnvironmentVariable ( "ArtefactsDirectoryPath" ) :
21+ "./Artefacts" ;
1822var azureArtefactsOrganization =
1923 HasArgument ( "AzureArtefactsOrganization" ) ? Argument < string > ( "AzureArtefactsOrganization" ) :
2024 EnvironmentVariable ( "AzureArtefactsOrganization" ) != null ? EnvironmentVariable ( "AzureArtefactsOrganization" ) :
@@ -32,7 +36,7 @@ var nuGetApiKey =
3236 EnvironmentVariable ( "NuGetApiKey" ) != null ? EnvironmentVariable ( "NuGetApiKey" ) :
3337 null ;
3438
35- var artefactsDirectory = Directory ( "./Artefacts" ) ;
39+ var artefactsDirectory = Directory ( artefactsDirectoryPath ) ;
3640var versionSuffix = string . IsNullOrEmpty ( preReleaseSuffix ) ? null : preReleaseSuffix + "-" + buildNumber . ToString ( "D4" ) ;
3741
3842Task ( "Clean" )
You can’t perform that action at this time.
0 commit comments