Updated pipeline yml and added codeowner

This commit is contained in:
ray chen 2024-11-19 18:45:07 +00:00
Родитель e65906524d
Коммит e6e584f5e0
3 изменённых файлов: 34 добавлений и 51 удалений

1
.github/CODEOWNERS поставляемый
Просмотреть файл

@ -44,6 +44,7 @@
/tools/pipeline-witness/ @hallipr
/tools/sdk-ai-bots/ @raych1
/tools/sdk-testgen/ @lirenhe @tadelesh
/tools/spec-gen-sdk/ @raych1 @chidozieononiwu
/tools/test-proxy/ @scbedd @mikeharder @benbp
/tools/tsp-client/ @catalinaperalta
/tools/webhook-router/ @praveenkuttappan @weshaggard

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

@ -1,43 +0,0 @@
parameters:
- name: Publish
type: boolean
default: false
steps:
- task: NodeTool@0
inputs:
versionSpec: '$(NodeVersion)'
displayName: 'Install Node.js'
- bash: |
npm ci
displayName: 'npm ci'
workingDirectory: $(System.DefaultWorkingDirectory)/tools/spec-gen-sdk
- bash: |
npm run build-test
displayName: 'build and test'
workingDirectory: $(System.DefaultWorkingDirectory)/tools/spec-gen-sdk
- bash: |
npm pack
displayName: 'npm pack'
workingDirectory: $(System.DefaultWorkingDirectory)/tools/spec-gen-sdk
condition: ${{ parameters.Publish }}
- bash: 'cp azure-tools-spec-gen-sdk-*.tgz $(VAR_BUILD_ARTIFACT_STAGING_DIRECTORY)'
displayName: 'copy to staging directory'
workingDirectory: $(System.DefaultWorkingDirectory)/tools/spec-gen-sdk
condition: ${{ parameters.Publish }}
- pwsh: |
Get-ChildItem -Path $(VAR_BUILD_ARTIFACT_STAGING_DIRECTORY) `
| ForEach-Object { Write-Host "npm install $($_.FullName)"; npm install $_.FullName }
displayName: Smoke test a package installation
condition: ${{ parameters.Publish }}
- task: 1ES.PublishPipelineArtifact@1
inputs:
targetPath: '$(VAR_BUILD_ARTIFACT_STAGING_DIRECTORY)'
artifactName: '$(VAR_ARTIFACT_NAME)'
condition: ${{ parameters.Publish }}

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

@ -14,11 +14,6 @@ pr:
include:
- tools/spec-gen-sdk
parameters:
- name: Publish
type: boolean
default: false
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-publish-js.yml
parameters:
@ -43,6 +38,36 @@ extends:
image: $(LINUXVMIMAGE)
os: linux
steps:
- template: /tools/spec-gen-sdk/build-spec-gen-sdk.yml
parameters:
Publish: ${{ parameters.Publish }}
- task: NodeTool@0
inputs:
versionSpec: '$(NodeVersion)'
displayName: 'Install Node.js'
- bash: |
npm ci
displayName: 'npm ci'
workingDirectory: $(System.DefaultWorkingDirectory)/tools/spec-gen-sdk
- bash: |
npm run build-test
displayName: 'build and test'
workingDirectory: $(System.DefaultWorkingDirectory)/tools/spec-gen-sdk
- bash: |
npm pack
displayName: 'npm pack'
workingDirectory: $(System.DefaultWorkingDirectory)/tools/spec-gen-sdk
- bash: 'cp azure-tools-spec-gen-sdk-*.tgz $(VAR_BUILD_ARTIFACT_STAGING_DIRECTORY)'
displayName: 'copy to staging directory'
workingDirectory: $(System.DefaultWorkingDirectory)/tools/spec-gen-sdk
- pwsh: |
Get-ChildItem -Path $(VAR_BUILD_ARTIFACT_STAGING_DIRECTORY) `
| ForEach-Object { Write-Host "npm install $($_.FullName)"; npm install $_.FullName }
displayName: Smoke test a package installation
- task: 1ES.PublishPipelineArtifact@1
inputs:
targetPath: '$(VAR_BUILD_ARTIFACT_STAGING_DIRECTORY)'
artifactName: '$(VAR_ARTIFACT_NAME)'