52 строки
1.7 KiB
YAML
52 строки
1.7 KiB
YAML
# Variables defined in pipeline definition
|
|
# DevOpsProject - public, internal
|
|
# Branch - main
|
|
# Prefix - net, python, js, java, <lang>-pr
|
|
# RepositoryName - azure-sdk-for-<lang>
|
|
# DevOpsPath - $(Prefix)\pr
|
|
# ServiceDirectory - "", keyvault, storage, etc.
|
|
# PipelineConvention - ci, up, tests, testsweekly, upweekly
|
|
# AdditionalOptions - potentially add variablegroups via "--variablegroups x"
|
|
|
|
pr: none
|
|
|
|
trigger: none
|
|
|
|
variables:
|
|
NugetSecurityAnalysisWarningLevel: none
|
|
skipComponentGovernanceDetection: true
|
|
DevOpsOrg: azure-sdk
|
|
PathFilter: $(Pipeline.Workspace)/$(RepositoryName)/sdk/$(ServiceDirectory)
|
|
|
|
jobs:
|
|
- job: GeneratePipeline
|
|
pool:
|
|
name: azsdk-pool-mms-ubuntu-2204-general
|
|
vmImage: ubuntu-22.04
|
|
steps:
|
|
- checkout: none
|
|
- template: /eng/common/pipelines/templates/steps/install-pipeline-generation.yml
|
|
- script: |
|
|
git clone --filter=blob:none --branch $(Branch) https://$(azuresdk-github-pat)@github.com/azure/$(RepositoryName) $(Pipeline.Workspace)/$(RepositoryName)
|
|
displayName: 'Clone repository: $(RepositoryName)'
|
|
- task: AzureCLI@2
|
|
inputs:
|
|
azureSubscription: 'opensource-api-connection'
|
|
scriptType: pscore
|
|
scriptLocation: inlineScript
|
|
inlineScript: >
|
|
$(Pipeline.Workspace)/pipeline-generator/pipeline-generator generate
|
|
--organization $(DevOpsOrg)
|
|
--project $(DevOpsProject)
|
|
--prefix $(Prefix)
|
|
--devopspath "$(DevOpsPath)"
|
|
--path $(PathFilter)
|
|
--endpoint Azure
|
|
--repository Azure/$(RepositoryName)
|
|
--convention $(PipelineConvention)
|
|
--agentpool Hosted
|
|
--branch refs/heads/$(Branch)
|
|
--debug
|
|
$(AdditionalOptions)
|
|
displayName: 'Generate pipeline'
|