diff --git a/build/vsts-ci.yml b/build/vsts-ci.yml index ccf8fdfaf1..d96885b12f 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: @@ -257,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 + displayName: Dotnet Server Shutdown \ No newline at end of file