-
Notifications
You must be signed in to change notification settings - Fork 352
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
This reverts commit 5de8a0a.
- Loading branch information
Showing
12 changed files
with
578 additions
and
199 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
variables: | ||
- group: AzureDevOps-Artifact-Feeds-Pats | ||
- group: DotNet-Blob-Feed | ||
- group: DotNet-DotNetCli-Storage | ||
- group: DotNet-MSRC-Storage | ||
- group: Publish-Build-Assets | ||
|
||
# Default Maestro++ API Endpoint and API Version | ||
- name: MaestroApiEndPoint | ||
value: "https://maestro-prod.westus2.cloudapp.azure.com" | ||
- name: MaestroApiAccessToken | ||
value: $(MaestroAccessToken) | ||
- name: MaestroApiVersion | ||
value: "2020-02-20" | ||
|
||
- name: SourceLinkCLIVersion | ||
value: 3.0.0 | ||
|
||
# Skip component governance and codesign validation for SDL. These jobs | ||
# create no content. | ||
- name: skipComponentGovernanceDetection | ||
value: true | ||
- name: runCodesignValidationInjection | ||
value: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
jobs: | ||
- job: | ||
displayName: NuGet Validation | ||
dependsOn: setupMaestroVars | ||
pool: | ||
vmImage: 'windows-2019' | ||
variables: | ||
- name: AzDOProjectName | ||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.AzDOProjectName'] ] | ||
- name: AzDOPipelineId | ||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.AzDOPipelineId'] ] | ||
- name: AzDOBuildId | ||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.AzDOBuildId'] ] | ||
steps: | ||
- task: DownloadBuildArtifacts@0 | ||
displayName: Download Package Artifacts | ||
inputs: | ||
buildType: specific | ||
buildVersionToDownload: specific | ||
project: $(AzDOProjectName) | ||
pipeline: $(AzDOPipelineId) | ||
buildId: $(AzDOBuildId) | ||
artifactName: PackageArtifacts | ||
checkDownloadedFiles: true | ||
|
||
- task: PowerShell@2 | ||
displayName: Validate | ||
inputs: | ||
targetType: inline | ||
script: | | ||
try { | ||
$ErrorActionPreference = 'Stop' | ||
Set-StrictMode -Version 2.0 | ||
# `tools.ps1` requires $ci to be $true | ||
$ci = $true | ||
$disableConfigureToolsetImport = $true | ||
. ${Env:BUILD_SOURCESDIRECTORY}\eng\common\tools.ps1 | ||
$ToolDestinationPath = "${Env:AGENT_BUILDDIRECTORY}\Extract\" | ||
$PackagesPath = "${Env:BUILD_ARTIFACTSTAGINGDIRECTORY}\PackageArtifacts\" | ||
$url = 'https://raw.githubusercontent.com/NuGet/NuGetGallery/3e25ad135146676bcab0050a516939d9958bfa5d/src/VerifyMicrosoftPackage/verify.ps1' | ||
New-Item -ItemType 'directory' -Path ${ToolDestinationPath} -Force | ||
Invoke-WebRequest $url -OutFile ${ToolDestinationPath}\verify.ps1 | ||
& ${ToolDestinationPath}\verify.ps1 ${PackagesPath}\*.nupkg | ||
} | ||
catch { | ||
Write-Host $_.ScriptStackTrace | ||
Write-PipelineTelemetryError -Category 'NuGetValidation' -Message $_ | ||
ExitWithExitCode 1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
jobs: | ||
- job: | ||
displayName: Post-build Checks | ||
dependsOn: setupMaestroVars | ||
variables: | ||
- name: TargetChannels | ||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.TargetChannels'] ] | ||
pool: | ||
vmImage: 'windows-2019' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
parameters: | ||
artifactsPublishingAdditionalParameters: '' | ||
publishInstallersAndChecksums: true | ||
PromoteToChannelIds: '' | ||
symbolPublishingAdditionalParameters: '' | ||
buildQuality: 'daily' | ||
|
||
jobs: | ||
- job: publish_assets | ||
displayName: Publish Assets and Symbols | ||
dependsOn: setupMaestroVars | ||
timeoutInMinutes: 120 | ||
variables: | ||
- group: DotNet-Symbol-Server-Pats | ||
- group: DotNetBuilds storage account tokens | ||
- name: BARBuildId | ||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.BARBuildId'] ] | ||
- name: IsStableBuild | ||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.IsStableBuild'] ] | ||
- name: AzDOProjectName | ||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.AzDOProjectName'] ] | ||
- name: AzDOPipelineId | ||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.AzDOPipelineId'] ] | ||
- name: AzDOBuildId | ||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.AzDOBuildId'] ] | ||
- name: AzDOAccount | ||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.AzDOBuildAccount'] ] | ||
|
||
pool: | ||
vmImage: 'windows-2019' | ||
steps: | ||
- task: DownloadBuildArtifacts@0 | ||
displayName: Download Build Assets | ||
continueOnError: true | ||
enabled: true | ||
inputs: | ||
buildType: specific | ||
buildVersionToDownload: specific | ||
project: $(AzDOProjectName) | ||
pipeline: $(AzDOPipelineId) | ||
buildId: $(AzDOBuildId) | ||
downloadType: 'specific' | ||
itemPattern: | | ||
AssetManifests/** | ||
BlobArtifacts/MergedManifest.xml | ||
PdbArtifacts/** | ||
ReleaseConfigs/SymbolPublishingExclusionsFile.txt | ||
downloadPath: '$(Build.ArtifactStagingDirectory)' | ||
|
||
- task: NuGetToolInstaller@1 | ||
displayName: 'Install NuGet.exe' | ||
|
||
# This is necessary whenever we want to publish/restore to an AzDO private feed | ||
- task: NuGetAuthenticate@0 | ||
displayName: 'Authenticate to AzDO Feeds' | ||
|
||
- task: PowerShell@2 | ||
displayName: Enable cross-org publishing | ||
inputs: | ||
filePath: $(Build.SourcesDirectory)/eng/common/enable-cross-org-publishing.ps1 | ||
arguments: -token $(dn-bot-dnceng-artifact-feeds-rw) | ||
|
||
- task: PowerShell@2 | ||
displayName: Publish packages, blobs and symbols | ||
inputs: | ||
filePath: $(Build.SourcesDirectory)/eng/common/sdk-task.ps1 | ||
arguments: -task PublishArtifactsInManifest -restore -msbuildEngine dotnet | ||
/p:PublishingInfraVersion=3 | ||
/p:BARBuildId=$(BARBuildId) | ||
/p:TargetChannels='${{ parameters.PromoteToChannelIds }}' | ||
/p:IsInternalBuild=${{ and(ne(variables['System.TeamProject'], 'public'), contains(variables['Build.SourceBranch'], 'internal')) }} | ||
/p:NugetPath=$(NuGetExeToolPath) | ||
/p:MaestroApiEndpoint='$(MaestroApiEndPoint)' | ||
/p:BuildAssetRegistryToken='$(MaestroApiAccessToken)' | ||
/p:ManifestsBasePath='$(Build.ArtifactStagingDirectory)/AssetManifests/' | ||
/p:BlobBasePath='$(Build.ArtifactStagingDirectory)/BlobArtifacts/' | ||
/p:PackageBasePath='$(Build.ArtifactStagingDirectory)/PackageArtifacts/' | ||
/p:PublishInstallersAndChecksums=${{ parameters.publishInstallersAndChecksums }} | ||
/p:InstallersAzureAccountKey=$(dotnetcli-storage-key) | ||
/p:InternalInstallersAzureAccountKey=$(dotnetclimsrc-access-key) | ||
/p:ChecksumsAzureAccountKey=$(dotnetclichecksums-storage-key) | ||
/p:InternalChecksumsAzureAccountKey=$(dotnetclichecksumsmsrc-storage-key) | ||
/p:AzureDevOpsFeedsKey='$(dn-bot-dnceng-artifact-feeds-rw)' | ||
/p:AzureStorageTargetFeedPAT='$(dotnetfeed-storage-access-key-1)' | ||
/p:AkaMSClientId=$(akams-client-id) | ||
/p:AkaMSClientSecret=$(akams-client-secret) | ||
${{ parameters.artifactsPublishingAdditionalParameters }} | ||
/p:PDBArtifactsBasePath='$(Build.ArtifactStagingDirectory)/PDBArtifacts/' | ||
/p:SymbolPublishingExclusionsFile='$(Build.ArtifactStagingDirectory)/ReleaseConfigs/SymbolPublishingExclusionsFile.txt' | ||
${{ parameters.symbolPublishingAdditionalParameters}} | ||
/p:MsdlToken=$(microsoft-symbol-server-pat) | ||
/p:SymWebToken=$(symweb-symbol-server-pat) | ||
/p:BuildQuality='${{ parameters.buildQuality }}' | ||
/p:AzdoApiToken='$(dn-bot-all-orgs-build-rw-code-rw)' | ||
/p:ArtifactsBasePath='$(Build.ArtifactStagingDirectory)/' | ||
/p:BuildId='$(AzDOBuildId)' | ||
/p:AzureDevOpsOrg='$(AzDOAccount)' | ||
/p:AzureProject='$(AzDOProjectName)' | ||
/p:UseStreamingPublishing='true' | ||
/p:StreamingPublishingMaxClients=16 | ||
/p:NonStreamingPublishingMaxClients=12 | ||
/p:DotNetBuildsPublicUriBase64='$(dotnetbuilds-public-container-uri-base64)' | ||
/p:DotNetBuildsPublicChecksumsUriBase64='$(dotnetbuilds-public-container-checksum-uri-base64)' | ||
/p:DotNetBuildsInternalUriBase64='$(dotnetbuilds-internal-container-uri-base64)' | ||
/p:DotNetBuildsInternalChecksumsUriBase64='$(dotnetbuilds-internal-container-checksum-uri-base64)' | ||
- template: /eng/common/templates/steps/publish-logs.yml | ||
parameters: | ||
StageLabel: '${{ parameters.stageName }}' | ||
JobLabel: 'AssetsPublishing' |
Oops, something went wrong.