• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1jobs:
2- job: Pack_Nuget
3  displayName: Pack Nuget bundles
4  condition: and(succeeded(), eq(variables['DoNuget'], 'true'))
5
6  pool:
7    vmImage: windows-2019
8
9  workspace:
10    clean: all
11
12  strategy:
13    matrix:
14      amd64:
15        Name: amd64
16      win32:
17        Name: win32
18      arm64:
19        Name: arm64
20
21  steps:
22  - checkout: none
23
24  - task: DownloadPipelineArtifact@1
25    displayName: 'Download artifact: layout_nuget_$(Name)'
26    inputs:
27      artifactName: layout_nuget_$(Name)
28      targetPath: $(Build.BinariesDirectory)\layout
29
30  - task: NugetToolInstaller@0
31    displayName: 'Install Nuget'
32    inputs:
33      versionSpec: '>=5.0'
34
35  - powershell: |
36      nuget pack "$(Build.BinariesDirectory)\layout\python.nuspec" -OutputDirectory $(Build.ArtifactStagingDirectory) -NoPackageAnalysis -NonInteractive
37    displayName: 'Create nuget package'
38
39  - task: PublishBuildArtifacts@1
40    displayName: 'Publish Artifact: nuget'
41    inputs:
42      PathtoPublish: '$(Build.ArtifactStagingDirectory)'
43      ArtifactName: nuget
44