Merge pull request #32 from microsoft/1es-template

Use managed pipelines.
This commit is contained in:
Ian Clanton-Thuon 2023-10-24 17:09:05 -04:00 коммит произвёл GitHub
Родитель 9dbf5a6163 ce43dda715
Коммит b4a6046568
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
4 изменённых файлов: 46 добавлений и 21 удалений

Просмотреть файл

@ -7,12 +7,12 @@ jobs:
condition: succeeded()
strategy:
matrix:
'NodeJs 12':
NodeVersion: 12
'NodeJs 14':
NodeVersion: 14
'NodeJs 16':
NodeVersion: 16
steps:
- checkout: self
path: rushstack-legacy
- template: templates/build.yaml
- template: /common/config/azure-pipelines/templates/build.yaml@self

Просмотреть файл

@ -1,21 +1,45 @@
variables:
- name: FORCE_COLOR
value: 1
- name: NodeVersion
value: 16
resources:
repositories:
- repository: RushstackMainRepo
type: github
name: Microsoft/rushstack
endpoint: 'GitHub (Rushbot)'
- repository: 1esPipelines
type: git
name: 1ESPipelineTemplates/1ESPipelineTemplates
ref: refs/tags/release
pool:
vmImage: 'ubuntu-latest'
variables:
NodeVersion: 14
FORCE_COLOR: 1
steps:
- checkout: self
persistCredentials: true
path: rushstack-legacy
- template: templates/build.yaml
- template: templates/publish.yaml
parameters:
VersionPolicyName: noRush
- template: templates/record-published-versions.yaml
extends:
template: v1/1ES.Official.PipelineTemplate.yml@1esPipelines
parameters:
pool:
name: Azure-Pipelines-1ESPT-ExDShared
os: windows
sdl:
sourceRepositoriesToScan:
include:
- repository: RushstackMainRepo
stages:
- stage:
jobs:
- job:
templateContext:
outputs:
- output: pipelineArtifact
targetPath: $(Build.ArtifactStagingDirectory)/published-versions
artifactName: published-versions
steps:
- checkout: self
persistCredentials: true
path: rushstack-legacy
- template: /common/config/azure-pipelines/templates/build.yaml@self
- template: /common/config/azure-pipelines/templates/publish.yaml@self
parameters:
VersionPolicyName: noRush
- template: /common/config/azure-pipelines/templates/record-published-versions.yaml@self

Просмотреть файл

@ -16,6 +16,7 @@ steps:
- script: 'node $(Agent.BuildDirectory)/rushstack/repo-scripts/repo-toolbox/lib/start.js record-versions --out-file $(Build.ArtifactStagingDirectory)/published-versions/published-versions.json'
displayName: 'Record Published Versions'
workingDirectory: '$(Agent.BuildDirectory)/rushstack-legacy'
- publish: $(Build.ArtifactStagingDirectory)/published-versions
artifact: published-versions
displayName: 'Publish Artifact: published-versions'
# Published by the 1ES template
# - publish: $(Build.ArtifactStagingDirectory)/published-versions
# artifact: published-versions
# displayName: 'Publish Artifact: published-versions'

Просмотреть файл

@ -124,7 +124,7 @@
* LTS schedule: https://nodejs.org/en/about/releases/
* LTS versions: https://nodejs.org/en/download/releases/
*/
"nodeSupportedVersionRange": ">=12.13.0 <13.0.0 || >=14.15.0 <15.0.0",
"nodeSupportedVersionRange": ">=14.15.0 <15.0.0 || >=16.20.2 < 17.0.0",
/**
* Odd-numbered major versions of Node.js are experimental. Even-numbered releases