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