|
| 1 | +name: NuGetGallery CI $(Build.BuildId) |
| 2 | + |
| 3 | +trigger: |
| 4 | + branches: |
| 5 | + include: |
| 6 | + - '*' |
| 7 | + batch: True |
| 8 | + |
| 9 | +variables: |
| 10 | +- name: Assemblies |
| 11 | + value: '' |
| 12 | +- name: BuildConfiguration |
| 13 | + value: Release |
| 14 | +- name: BuildType |
| 15 | + value: Unsigned |
| 16 | +- name: Codeql.Enabled |
| 17 | + value: true |
| 18 | +- name: NugetSecurityAnalysisWarningLevel |
| 19 | + value: none |
| 20 | +- name: PackageVersion |
| 21 | + value: $(SimplePackageVersion)$(PrereleaseVersion) |
| 22 | +- name: PrereleaseVersion |
| 23 | + value: -$(NuGetGalleryBranch)-$(Build.BuildId) |
| 24 | +- name: SimplePackageVersion |
| 25 | + value: 4.4.5 |
| 26 | +- name: nugetMultiFeedWarnLevel |
| 27 | + value: none |
| 28 | +- name: NuGetGalleryDirectory |
| 29 | + value: ng |
| 30 | +- name: NuGetGalleryPath |
| 31 | + value: $(Agent.BuildDirectory)\$(NuGetGalleryDirectory) |
| 32 | +- name: NuGetGalleryBranch |
| 33 | + value: $(Build.SourceBranchName) |
| 34 | + |
| 35 | +resources: |
| 36 | + repositories: |
| 37 | + - repository: self |
| 38 | + type: git |
| 39 | + ref: refs/heads/main |
| 40 | + - repository: 1ESPipelineTemplates |
| 41 | + type: git |
| 42 | + name: 1ESPipelineTemplates/1ESPipelineTemplates |
| 43 | + ref: refs/tags/release |
| 44 | + |
| 45 | +extends: |
| 46 | + template: v1/1ES.Unofficial.PipelineTemplate.yml@1ESPipelineTemplates |
| 47 | + parameters: |
| 48 | + pool: |
| 49 | + name: NuGet-1ES-Hosted-Pool |
| 50 | + image: NuGet-1ESPT-Win2022 |
| 51 | + os: windows |
| 52 | + customBuildTags: |
| 53 | + - ES365AIMigrationTooling |
| 54 | + stages: |
| 55 | + - stage: stage |
| 56 | + jobs: |
| 57 | + - job: Phase_1 |
| 58 | + displayName: Phase 1 |
| 59 | + cancelTimeoutInMinutes: 1 |
| 60 | + templateContext: |
| 61 | + outputs: |
| 62 | + - output: pipelineArtifact |
| 63 | + displayName: 'Publish Artifact: UnsignedArtifacts' |
| 64 | + targetPath: artifacts |
| 65 | + artifactName: UnsignedArtifacts |
| 66 | + steps: |
| 67 | + - checkout: self |
| 68 | + fetchDepth: 1 |
| 69 | + clean: true |
| 70 | + fetchTags: false |
| 71 | + path: $(NuGetGalleryDirectory) |
| 72 | + - task: PowerShell@1 |
| 73 | + name: PowerShell_1 |
| 74 | + displayName: Build |
| 75 | + inputs: |
| 76 | + scriptName: $(NuGetGalleryPath)\build.ps1 |
| 77 | + arguments: -Configuration $(BuildConfiguration) -BuildNumber $(Build.BuildId) -SimpleVersion $(SimplePackageVersion) -SemanticVersion $(PackageVersion) -Branch $(NuGetGalleryBranch) -CommitSHA $(Build.SourceVersion) |
| 78 | + workingFolder: $(NuGetGalleryPath) |
| 79 | + - task: PowerShell@1 |
| 80 | + name: PowerShell_2 |
| 81 | + displayName: Run unit tests |
| 82 | + inputs: |
| 83 | + scriptName: $(NuGetGalleryPath)\test.ps1 |
| 84 | + arguments: -Configuration $(BuildConfiguration) -BuildNumber $(Build.BuildId) |
| 85 | + workingFolder: $(NuGetGalleryPath) |
| 86 | + - task: PublishTestResults@1 |
| 87 | + name: PublishTestResults_3 |
| 88 | + displayName: Publish Test Results Results.*.xml |
| 89 | + condition: succeededOrFailed() |
| 90 | + inputs: |
| 91 | + testRunner: XUnit |
| 92 | + testResultsFiles: $(NuGetGalleryPath)\Results.*.xml |
0 commit comments