Skip to content

Commit

Permalink
Changing away from MicroBuildUploadVstsDropFolder@2 (#469)
Browse files Browse the repository at this point in the history
Using output method with microBuildVstsDrop instead of
MicroBuildUploadVstsDropFolder@2 task for compatibility

---------

Co-authored-by: Abby Powell (from Dev Box) <[email protected]>
  • Loading branch information
amp-powell and Abby Powell (from Dev Box) authored Feb 27, 2024
1 parent d61dbf0 commit 057378f
Showing 1 changed file with 4 additions and 27 deletions.
31 changes: 4 additions & 27 deletions build/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,6 @@ steps:
displayName: NuGet Authenticate

- ${{ if eq(parameters.sign, 'true') }}:
- task: ms-vseng.MicroBuildTasks.30666190-6959-11e5-9f96-f56098202fef.MicroBuildSigningPlugin@4
displayName: Install Signing Plugin
inputs:
signType: '$(SignType)'
feedSource: 'https://pkgs.dev.azure.com/mseng/_packaging/MicroBuildToolset/nuget/v3/index.json'

- task: ms-vseng.MicroBuildTasks.32f78468-e895-4f47-962c-58a699361df8.MicroBuildSwixPlugin@4
displayName: Install Swix Plugin
inputs:
feedSource: 'https://pkgs.dev.azure.com/mseng/_packaging/MicroBuildToolset/nuget/v3/index.json'

- script: nuget restore packages.config -PackagesDirectory packages
displayName: NuGet restore
workingDirectory: CredentialProvider.Microsoft.VSIX
Expand Down Expand Up @@ -63,13 +52,6 @@ steps:
configuration: '$(BuildConfiguration)'
msbuildArguments: '/p:OutputPath=$(Build.ArtifactStagingDirectory)\$(BuildConfiguration)\vsix\ /p:TreatWarningsAsErrors=true'

- task: ms-vseng.MicroBuildTasks.4305a8de-ba66-4d8b-b2d1-0dc4ecbbf5e8.MicroBuildUploadVstsDropFolder@2
displayName: Upload VSTS Drop
inputs:
DropFolder: '$(Build.ArtifactStagingDirectory)\$(BuildConfiguration)\vsix\'
DropRetentionDays: 365
AccessToken: $(DevDivDropManageAccessToken)

- ${{ if ne(parameters.sign, 'true') }}:
- script: dotnet test MicrosoftCredentialProvider.sln --logger trx --results-directory $(Agent.TempDirectory)
displayName: dotnet test
Expand Down Expand Up @@ -228,14 +210,9 @@ steps:
displayName: dotnet push
condition: eq(variables['PushNupkg'], 'true')

- task: ManifestGeneratorTask@0
displayName: 'SBOM Generator'
inputs:
BuildDropPath: '$(Build.ArtifactStagingDirectory)\$(BuildConfiguration)\'
Verbosity: Verbose

- task: PublishBuildArtifacts@1
- task: PublishPipelineArtifact@1
displayName: Publish Artifact $(Build.BuildNumber)
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)\$(BuildConfiguration)\'
ArtifactName: '$(Build.BuildNumber)'
artifact: '$(Build.BuildNumber)'
targetPath: '$(Build.ArtifactStagingDirectory)\$(BuildConfiguration)\'

0 comments on commit 057378f

Please sign in to comment.