2019-06-14 18:20:16 -03:00
|
|
|
jobs:
|
|
|
|
- job: Pack_Nuget
|
|
|
|
displayName: Pack Nuget bundles
|
|
|
|
condition: and(succeeded(), eq(variables['DoNuget'], 'true'))
|
|
|
|
|
|
|
|
pool:
|
2020-02-28 20:41:03 -04:00
|
|
|
vmImage: windows-2019
|
2019-06-14 18:20:16 -03:00
|
|
|
|
|
|
|
workspace:
|
|
|
|
clean: all
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
amd64:
|
|
|
|
Name: amd64
|
|
|
|
win32:
|
|
|
|
Name: win32
|
2019-12-06 13:40:39 -04:00
|
|
|
arm64:
|
|
|
|
Name: arm64
|
2019-06-14 18:20:16 -03:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- checkout: none
|
|
|
|
|
2019-06-17 20:32:05 -03:00
|
|
|
- task: DownloadPipelineArtifact@1
|
2019-06-14 18:20:16 -03:00
|
|
|
displayName: 'Download artifact: layout_nuget_$(Name)'
|
|
|
|
inputs:
|
|
|
|
artifactName: layout_nuget_$(Name)
|
2019-06-17 20:32:05 -03:00
|
|
|
targetPath: $(Build.BinariesDirectory)\layout
|
2019-06-14 18:20:16 -03:00
|
|
|
|
|
|
|
- task: NugetToolInstaller@0
|
|
|
|
displayName: 'Install Nuget'
|
|
|
|
inputs:
|
|
|
|
versionSpec: '>=5.0'
|
|
|
|
|
|
|
|
- powershell: |
|
2019-06-17 20:32:05 -03:00
|
|
|
nuget pack "$(Build.BinariesDirectory)\layout\python.nuspec" -OutputDirectory $(Build.ArtifactStagingDirectory) -NoPackageAnalysis -NonInteractive
|
2019-06-14 18:20:16 -03:00
|
|
|
displayName: 'Create nuget package'
|
|
|
|
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
|
|
displayName: 'Publish Artifact: nuget'
|
|
|
|
inputs:
|
|
|
|
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
|
|
|
|
ArtifactName: nuget
|