Create pipelines for data plane track1 package (#16761)

* Create pipelines for data plane track1 package
This commit is contained in:
praveenkuttappan 2021-08-04 16:56:35 -04:00 коммит произвёл GitHub
Родитель f37da402d1
Коммит 1fb85836bc
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 183 добавлений и 1 удалений

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

@ -108,7 +108,7 @@ function isPackageFolderPath(folderPath: string, packagesToIgnore: string[]): bo
if (fileExistsSync(packageJsonFilePath)) {
const packageJson: PackageJson = readPackageJsonFileSync(packageJsonFilePath);
// Skip all perf framework projects from gulp pack
if (packageJson?.name?.startsWith("@azure-tests/")) {
if (packageJson?.name?.startsWith("@azure-tests/") || packageJson?.name?.startsWith("@azure/arm-")) {
return false;
}
result = !contains(packagesToIgnore, packageJson.name!);

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

@ -0,0 +1,96 @@
trigger:
branches:
include:
- main
paths:
include:
- eng/pipelines/mgmt-pr.yml
- sdk/applicationinsights/applicationinsights-query
- sdk/batch/batch
- sdk/cognitiveservices/cognitiveservices-anomalydetector
- sdk/cognitiveservices/cognitiveservices-autosuggest
- sdk/cognitiveservices/cognitiveservices-computervision
- sdk/cognitiveservices/cognitiveservices-contentmoderator
- sdk/cognitiveservices/cognitiveservices-customimagesearch
- sdk/cognitiveservices/cognitiveservices-customsearch
- sdk/cognitiveservices/cognitiveservices-customvision-prediction
- sdk/cognitiveservices/cognitiveservices-customvision-training
- sdk/cognitiveservices/cognitiveservices-entitysearch
- sdk/cognitiveservices/cognitiveservices-face
- sdk/cognitiveservices/cognitiveservices-formrecognizer
- sdk/cognitiveservices/cognitiveservices-imagesearch
- sdk/cognitiveservices/cognitiveservices-localsearch
- sdk/cognitiveservices/cognitiveservices-luis-authoring
- sdk/cognitiveservices/cognitiveservices-luis-runtime
- sdk/cognitiveservices/cognitiveservices-newssearch
- sdk/cognitiveservices/cognitiveservices-personalizer
- sdk/cognitiveservices/cognitiveservices-qnamaker
- sdk/cognitiveservices/cognitiveservices-qnamaker-runtime
- sdk/cognitiveservices/cognitiveservices-spellcheck
- sdk/cognitiveservices/cognitiveservices-textanalytics
- sdk/cognitiveservices/cognitiveservices-translatortext
- sdk/cognitiveservices/cognitiveservices-videosearch
- sdk/cognitiveservices/cognitiveservices-visualsearch
- sdk/cognitiveservices/cognitiveservices-websearch
- sdk/graphrbac/graph
- sdk/operationalinsights/loganalytics
- sdk/servicefabric/servicefabric
- sdk/storage/storage-datalake
pr: none
variables:
NodeVersion: '10.x'
jobs:
- job: 'Build'
pool:
vmImage: 'Ubuntu 20.04'
steps:
- task: NodeTool@0
inputs:
versionSpec: '$(NodeVersion)'
displayName: 'Install Node.js $(NodeVersion)'
- task: Npm@1
displayName: 'npm install'
inputs:
verbose: false
- script: 'gulp pack --base-reference=main --head-reference=main'
displayName: 'gulp pack'
- task: CopyFiles@2
displayName: 'Copy Files to: drop'
inputs:
Contents: '*.tgz'
TargetFolder: drop
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: $(Build.SourcesDirectory)/drop
- job: 'Analyze'
pool:
vmImage: 'Ubuntu 20.04'
steps:
- task: NodeTool@0
inputs:
versionSpec: '$(NodeVersion)'
displayName: 'Install Node.js $(NodeVersion)'
- task: Npm@1
displayName: 'npm install'
inputs:
command: install
- task: Npm@1
displayName: 'npm audit'
condition: and(succeeded(), eq(variables['RunNpmAudit'], 'true'))
inputs:
command: custom
customCommand: 'audit'

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

@ -0,0 +1,86 @@
trigger:
branches:
include:
- main
pr:
branches:
include:
- main
paths:
include:
- eng/pipelines/mgmt-pr.yml
- sdk/applicationinsights/applicationinsights-query
- sdk/batch/batch
- sdk/cognitiveservices/cognitiveservices-anomalydetector
- sdk/cognitiveservices/cognitiveservices-autosuggest
- sdk/cognitiveservices/cognitiveservices-computervision
- sdk/cognitiveservices/cognitiveservices-contentmoderator
- sdk/cognitiveservices/cognitiveservices-customimagesearch
- sdk/cognitiveservices/cognitiveservices-customsearch
- sdk/cognitiveservices/cognitiveservices-customvision-prediction
- sdk/cognitiveservices/cognitiveservices-customvision-training
- sdk/cognitiveservices/cognitiveservices-entitysearch
- sdk/cognitiveservices/cognitiveservices-face
- sdk/cognitiveservices/cognitiveservices-formrecognizer
- sdk/cognitiveservices/cognitiveservices-imagesearch
- sdk/cognitiveservices/cognitiveservices-localsearch
- sdk/cognitiveservices/cognitiveservices-luis-authoring
- sdk/cognitiveservices/cognitiveservices-luis-runtime
- sdk/cognitiveservices/cognitiveservices-newssearch
- sdk/cognitiveservices/cognitiveservices-personalizer
- sdk/cognitiveservices/cognitiveservices-qnamaker
- sdk/cognitiveservices/cognitiveservices-qnamaker-runtime
- sdk/cognitiveservices/cognitiveservices-spellcheck
- sdk/cognitiveservices/cognitiveservices-textanalytics
- sdk/cognitiveservices/cognitiveservices-translatortext
- sdk/cognitiveservices/cognitiveservices-videosearch
- sdk/cognitiveservices/cognitiveservices-visualsearch
- sdk/cognitiveservices/cognitiveservices-websearch
- sdk/graphrbac/graph
- sdk/operationalinsights/loganalytics
- sdk/servicefabric/servicefabric
- sdk/storage/storage-datalake
variables:
NodeVersion: 10.x
jobs:
- job: Build
displayName: Build auto-generated projects
pool:
vmImage: Ubuntu 20.04
steps:
- task: NodeTool@0
inputs:
versionSpec: $(NodeVersion)
displayName: Install Node.js $(NodeVersion)
- task: Npm@1
displayName: npm install
inputs:
command: install
- task: Npm@1
displayName: npm run build
inputs:
command: custom
customCommand: run build -- --head-reference=origin/$(System.PullRequest.SourceBranch) --base-reference=origin/$(System.PullRequest.TargetBranch) --logging-level=trace
- job: Check_everything
displayName: Check .only, .skip and version bump
steps:
- task: NodeTool@0
inputs:
versionSpec: $(NodeVersion)
displayName: Install Node.js $(NodeVersion)
- task: Npm@1
displayName: npm install
inputs:
command: install
- task: Npm@1
displayName: npm audit
condition: and(succeeded(), eq(variables['RunNpmAudit'], 'true'))
inputs:
command: custom
customCommand: audit
- task: Npm@1
displayName: npm run check:everything
inputs:
command: custom
customCommand: run check:everything -- --head-reference=origin/$(System.PullRequest.SourceBranch) --base-reference=origin/$(System.PullRequest.TargetBranch) --azure-devops --verbose