|
1 |
| -pool: |
2 |
| - vmImage: 'ubuntu-latest' |
3 |
| - |
4 | 1 | variables:
|
5 | 2 | - name: FORCE_COLOR
|
6 | 3 | value: 1
|
7 | 4 | - name: SourceBranch
|
8 | 5 | value: $[ replace(replace(resources.repositories.self.ref, 'refs/heads/', ''), 'refs/pull/', 'refs/remotes/pull/') ]
|
9 | 6 |
|
10 |
| -steps: |
11 |
| - - checkout: self |
12 |
| - persistCredentials: true |
13 |
| - |
14 |
| - - template: templates/install-node.yaml |
15 |
| - |
16 |
| - - template: templates/build.yaml |
17 |
| - |
18 |
| - - template: templates/bump-versions.yaml |
19 |
| - parameters: |
20 |
| - VersionPolicyName: noRush |
21 |
| - BranchName: $(SourceBranch) |
22 |
| - |
23 |
| - - template: templates/bump-versions.yaml |
24 |
| - parameters: |
25 |
| - VersionPolicyName: rush |
26 |
| - BranchName: $(SourceBranch) |
27 |
| - |
28 |
| - - script: 'node libraries/rush-lib/scripts/plugins-prepublish.js' |
29 |
| - displayName: 'Prepublish workaround for rush-lib' |
30 |
| - |
31 |
| - - template: templates/publish.yaml |
32 |
| - parameters: |
33 |
| - VersionPolicyName: noRush |
34 |
| - BranchName: $(SourceBranch) |
35 |
| - |
36 |
| - - template: templates/publish.yaml |
37 |
| - parameters: |
38 |
| - VersionPolicyName: rush |
39 |
| - BranchName: $(SourceBranch) |
40 |
| - |
41 |
| - - template: templates/record-published-versions.yaml |
| 7 | +resources: |
| 8 | + repositories: |
| 9 | + - repository: 1esPipelines |
| 10 | + type: git |
| 11 | + name: 1ESPipelineTemplates/1ESPipelineTemplates |
| 12 | + ref: refs/tags/release |
| 13 | + |
| 14 | +extends: |
| 15 | + template: v1/1ES.Official.PipelineTemplate.yml@1esPipelines |
| 16 | + parameters: |
| 17 | + pool: |
| 18 | + name: Azure-Pipelines-1ESPT-ExDShared |
| 19 | + os: windows |
| 20 | + stages: |
| 21 | + - stage: |
| 22 | + jobs: |
| 23 | + - job: |
| 24 | + templateContext: |
| 25 | + outputs: |
| 26 | + - output: pipelineArtifact |
| 27 | + targetPath: $(Build.ArtifactStagingDirectory)/published-versions |
| 28 | + artifactName: published-versions |
| 29 | + steps: |
| 30 | + - checkout: self |
| 31 | + persistCredentials: true |
| 32 | + |
| 33 | + - template: /common/config/azure-pipelines/templates/install-node.yaml@self |
| 34 | + |
| 35 | + - template: /common/config/azure-pipelines/templates/build.yaml@self |
| 36 | + |
| 37 | + - template: /common/config/azure-pipelines/templates/bump-versions.yaml@self |
| 38 | + parameters: |
| 39 | + VersionPolicyName: noRush |
| 40 | + BranchName: $(SourceBranch) |
| 41 | + |
| 42 | + - template: /common/config/azure-pipelines/templates/bump-versions.yaml@self |
| 43 | + parameters: |
| 44 | + VersionPolicyName: rush |
| 45 | + BranchName: $(SourceBranch) |
| 46 | + |
| 47 | + - script: 'node libraries/rush-lib/scripts/plugins-prepublish.js' |
| 48 | + displayName: 'Prepublish workaround for rush-lib' |
| 49 | + |
| 50 | + - template: /common/config/azure-pipelines/templates/publish.yaml@self |
| 51 | + parameters: |
| 52 | + VersionPolicyName: noRush |
| 53 | + BranchName: $(SourceBranch) |
| 54 | + |
| 55 | + - template: /common/config/azure-pipelines/templates/publish.yaml@self |
| 56 | + parameters: |
| 57 | + VersionPolicyName: rush |
| 58 | + BranchName: $(SourceBranch) |
| 59 | + |
| 60 | + - template: /common/config/azure-pipelines/templates/record-published-versions.yaml@self |
0 commit comments