From 82edb6102aa7fff6272b0cc3fe99223721cc3465 Mon Sep 17 00:00:00 2001 From: Antonio Velazquez Date: Mon, 28 Oct 2019 17:09:33 -0700 Subject: [PATCH 1/2] Publish nugets to azure devops feed --- build/vsts-ci.yml | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/build/vsts-ci.yml b/build/vsts-ci.yml index ccf8fdfaf1..1d124c5712 100644 --- a/build/vsts-ci.yml +++ b/build/vsts-ci.yml @@ -174,13 +174,13 @@ phases: variables: BuildConfig: Release OfficialBuildId: $(BUILD.BUILDNUMBER) - DOTNET_CLI_TELEMETRY_OPTOUT: 1 + DOTNET_CLI_TELEMETRY_OUTPUT: 1 DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 DOTNET_MULTILEVEL_LOOKUP: 0 _SignType: real _UseEsrpSigning: true _TeamName: DotNetCore - _NuGetFeedUrl: https://dotnet.myget.org/F/dotnet-core/api/v2/package + _AzureDevopsFeedUrl: https://pkgs.dev.azure.com/dnceng/public/_packaging/MachineLearning/nuget/v3/index.json _SymwebSymbolServerPath: https://microsoft.artifacts.visualstudio.com/DefaultCollection _MsdlSymbolServerPath: https://microsoftpublicsymbols.artifacts.visualstudio.com/DefaultCollection queue: @@ -226,14 +226,6 @@ phases: msbuildVersion: 15.0 continueOnError: false - - task: NuGetCommand@2 - displayName: Publish Packages to VSTS Feed - inputs: - command: push - packagesToPush: $(Build.SourcesDirectory)/bin/packages/**/*.nupkg;!$(Build.SourcesDirectory)/bin/packages/**/*.symbols.nupkg - nuGetFeedType: internal - feedPublish: MachineLearning - # - task: MSBuild@1 # displayName: Publish Packages to MyGet Feed # inputs: @@ -241,6 +233,13 @@ phases: # msbuildArguments: /t:PublishPackages /p:NuGetFeedUrl=$(_NuGetFeedUrl) /p:NuGetApiKey=$(dotnet-myget-org-api-key) # msbuildVersion: 15.0 + - task: NuGetAuthenticate@0 + inputs: + nuGetServiceConnections: machinelearning-dnceng-public-feed # To allow publishing to a feed of another organization + + - script: Tools\dotnetcli\dotnet msbuild build\publish.proj /t:PublishPackages /p:NuGetFeedUrl=$(_AzureDevopsFeedUrl) /p:NuGetApiKey=AzureArtifacts + displayName: Publish Packages to AzureDevOps Feed + - task: MSBuild@1 displayName: Publish Symbols to SymWeb Symbol Server inputs: @@ -259,4 +258,4 @@ phases: # Terminate all dotnet build processes. - script: $(Build.SourcesDirectory)/Tools/dotnetcli/dotnet.exe build-server shutdown - displayName: Dotnet Server Shutdown + displayName: Dotnet Server Shutdown \ No newline at end of file From 7367e3c870abb895c79c200c88d122b9f9007255 Mon Sep 17 00:00:00 2001 From: Antonio Velazquez Date: Mon, 28 Oct 2019 17:52:49 -0700 Subject: [PATCH 2/2] Putting back the task that publishes to private feed --- build/vsts-ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/build/vsts-ci.yml b/build/vsts-ci.yml index 1d124c5712..d96885b12f 100644 --- a/build/vsts-ci.yml +++ b/build/vsts-ci.yml @@ -256,6 +256,14 @@ phases: msbuildVersion: 15.0 continueOnError: true + - task: NuGetCommand@2 + displayName: Publish Packages to private VSTS Feed + inputs: + command: push + packagesToPush: $(Build.SourcesDirectory)/bin/packages/**/*.nupkg;!$(Build.SourcesDirectory)/bin/packages/**/*.symbols.nupkg + nuGetFeedType: internal + feedPublish: MachineLearning + # Terminate all dotnet build processes. - script: $(Build.SourcesDirectory)/Tools/dotnetcli/dotnet.exe build-server shutdown displayName: Dotnet Server Shutdown \ No newline at end of file