diff --git a/azure-pipelines-official.yml b/azure-pipelines-official.yml index c74896f..63a85de 100644 --- a/azure-pipelines-official.yml +++ b/azure-pipelines-official.yml @@ -53,20 +53,6 @@ extends: condition: always() targetPath: $(ArtifactsDirectory) artifactName: 'artifacts' - - output: nuget - displayName: 'Push NuGet Packages to nuget.org' - condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/v')) - packageParentPath: '$(ArtifactsDirectory)' - packagesToPush: '$(ArtifactsDirectory)/**/Microsoft.VisualStudio.SlnGen*.nupkg' - nuGetFeedType: 'external' - publishFeedCredentials: 'NuGet-1ES-Full' - - output: nuget - displayName: 'Push SlnGen.Corext' - condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/v')) - packageParentPath: '$(ArtifactsDirectory)' - packagesToPush: '$(ArtifactsDirectory)/**/SlnGen.Corext*.nupkg' - nuGetFeedType: 'external' - publishFeedCredentials: 'CloudBuild-Push' steps: - script: 'echo ##vso[task.setvariable variable=SignType;]Real' displayName: 'Set SignType to Real for tagged commits' @@ -85,19 +71,3 @@ extends: inputs: solution: '**\*.sln' msbuildArgs: '$(MSBuildArgs)' - - task: AzureCLI@2 - displayName: 'Push SlnGen.Corext' - inputs: - azureSubscription: 'CloudBuild-Push-v2' - scriptType: 'pscore' - scriptLocation: 'inlineScript' - inlineScript: | - # Get an access token for Azure DevOp (resource id is for AzDO) - $accessToken = az account get-access-token --query accessToken --resource 499b84ac-1321-427f-aa17-267ca6975798 -o tsv - - # Set the access token as a secret, so it doesn't get leaked in the logs - Write-Host "##vso[task.setsecret]$accessToken" - - # Override the apitoken of the nuget service connection, for the duration of this stage - # Service connection is for "microsoft.slngen Official" - Write-Host "##vso[task.setendpoint id=d8767bc1-a109-4cb7-80c2-6ac1ebf4346e;field=authParameter;key=apitoken]$accessToken"