-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Publishing nuget packages to myget feed. #155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,9 @@ phases: | |
_PREVIEW_VSTS_DOCKER_IMAGE: microsoft/dotnet-buildtools-prereqs:centos-7-d485f41-20173404063424 | ||
BuildConfig: Release | ||
OfficialBuildId: $(BUILD.BUILDNUMBER) | ||
DOTNET_CLI_TELEMETRY_OPTOUT: 1 | ||
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 | ||
DOTNET_MULTILEVEL_LOOKUP: 0 | ||
queue: | ||
name: DotNetCore-Test | ||
demands: | ||
|
@@ -27,6 +30,9 @@ phases: | |
variables: | ||
BuildConfig: Release | ||
OfficialBuildId: $(BUILD.BUILDNUMBER) | ||
DOTNET_CLI_TELEMETRY_OPTOUT: 1 | ||
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 | ||
DOTNET_MULTILEVEL_LOOKUP: 0 | ||
queue: | ||
name: DotNetCore-Build | ||
demands: | ||
|
@@ -48,6 +54,9 @@ phases: | |
variables: | ||
BuildConfig: Release | ||
OfficialBuildId: $(BUILD.BUILDNUMBER) | ||
DOTNET_CLI_TELEMETRY_OPTOUT: 1 | ||
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 | ||
DOTNET_MULTILEVEL_LOOKUP: 0 | ||
_SignType: real | ||
_UseEsrpSigning: true | ||
_TeamName: DotNetCore | ||
|
@@ -96,12 +105,15 @@ phases: | |
variables: | ||
BuildConfig: Release | ||
OfficialBuildId: $(BUILD.BUILDNUMBER) | ||
DOTNET_CLI_TELEMETRY_OPTOUT: 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 | ||
_SymwebSymbolServerPath: https://microsoft.artifacts.visualstudio.com/DefaultCollection | ||
_MsdlSymbolServerPath: https://microsoftpublicsymbols.artifacts.visualstudio.com/DefaultCollection | ||
_SymbolExpirationInDays: 30 | ||
queue: | ||
name: DotNetCore-Build | ||
demands: | ||
|
@@ -145,26 +157,25 @@ phases: | |
msbuildVersion: 15.0 | ||
continueOnError: false | ||
|
||
- task: NuGetCommand@2 | ||
displayName: Publish Packages to VSTS Feed | ||
- task: MSBuild@1 | ||
displayName: Publish Packages to MyGet Feed | ||
inputs: | ||
command: push | ||
packagesToPush: $(Build.SourcesDirectory)/bin/packages/**/*.nupkg;!$(Build.SourcesDirectory)/bin/packages/**/*.symbols.nupkg | ||
nuGetFeedType: internal | ||
feedPublish: MachineLearning | ||
solution: build/publish.proj | ||
msbuildArguments: /t:PublishPackages /p:NuGetFeedUrl=$(_NuGetFeedUrl) /p:NuGetApiKey=$(dotnet-myget-org-api-key) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Is it purposely not defined, or we have some kind of hidden storage somewhere? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it will be defined in the build defination using variable groups. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correct. It is already in build definition. This does make it appear a bit magical, but that's how secret variables work. |
||
msbuildVersion: 15.0 | ||
|
||
- task: MSBuild@1 | ||
displayName: Publish Symbols to SymWeb Symbol Server | ||
inputs: | ||
solution: build/publish.proj | ||
msbuildArguments: /p:SymbolServerPath=$(_SymwebSymbolServerPath) /p:SymbolServerPAT=$(SymwebSymbolServerPAT) /p:SymbolExpirationInDays=$(_SymbolExpirationInDays) | ||
msbuildArguments: /t:PublishSymbolPackages /p:SymbolServerPath=$(_SymwebSymbolServerPath) /p:SymbolServerPAT=$(SymwebSymbolServerPAT) | ||
msbuildVersion: 15.0 | ||
continueOnError: true | ||
|
||
- task: MSBuild@1 | ||
displayName: Publish Symbols to Msdl Symbol Server | ||
inputs: | ||
solution: build/publish.proj | ||
msbuildArguments: /p:SymbolServerPath=$(_MsdlSymbolServerPath) /p:SymbolServerPAT=$(MsdlSymbolServerPAT) /p:SymbolExpirationInDays=$(_SymbolExpirationInDays) | ||
msbuildArguments: /t:PublishSymbolPackages /p:SymbolServerPath=$(_MsdlSymbolServerPath) /p:SymbolServerPAT=$(MsdlSymbolServerPAT) | ||
msbuildVersion: 15.0 | ||
continueOnError: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One hour looks like a lot of time considering size of packages.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed. I copied this from the core-setup repo, but looking at other places it is only 10 minutes. I'll update this.