| 1 |
parameters: |
| 2 |
|
| 3 |
continueOnError: false |
| 4 |
|
| 5 |
|
| 6 |
enablePublishBuildArtifacts: false |
| 7 |
|
| 8 |
|
| 9 |
enablePublishUsingPipelines: false |
| 10 |
|
| 11 |
graphFileGeneration: |
| 12 |
|
| 13 |
enabled: false |
| 14 |
|
| 15 |
includeToolset: false |
| 16 |
|
| 17 |
|
| 18 |
jobs: [] |
| 19 |
|
| 20 |
|
| 21 |
publishBuildAssetsDependsOn: '' |
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
runAsPublic: false |
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
jobs: |
| 31 |
- ${{ each job in parameters.jobs }}: |
| 32 |
- template: ../job/job.yml |
| 33 |
parameters: |
| 34 |
|
| 35 |
${{ each parameter in parameters }}: |
| 36 |
${{ if ne(parameter.key, 'jobs') }}: |
| 37 |
${{ parameter.key }}: ${{ parameter.value }} |
| 38 |
|
| 39 |
|
| 40 |
${{ each property in job }}: |
| 41 |
${{ if ne(property.key, 'job') }}: |
| 42 |
${{ property.key }}: ${{ property.value }} |
| 43 |
|
| 44 |
name: ${{ job.job }} |
| 45 |
|
| 46 |
- ${{ if and(eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}: |
| 47 |
- ${{ if or(eq(parameters.enablePublishBuildAssets, true), eq(parameters.artifacts.publish.manifests, 'true'), ne(parameters.artifacts.publish.manifests, '')) }}: |
| 48 |
- template: ../job/publish-build-assets.yml |
| 49 |
parameters: |
| 50 |
continueOnError: ${{ parameters.continueOnError }} |
| 51 |
dependsOn: |
| 52 |
- ${{ if ne(parameters.publishBuildAssetsDependsOn, '') }}: |
| 53 |
- ${{ each job in parameters.publishBuildAssetsDependsOn }}: |
| 54 |
- ${{ job.job }} |
| 55 |
- ${{ if eq(parameters.publishBuildAssetsDependsOn, '') }}: |
| 56 |
- ${{ each job in parameters.jobs }}: |
| 57 |
- ${{ job.job }} |
| 58 |
pool: |
| 59 |
vmImage: vs2017-win2016 |
| 60 |
runAsPublic: ${{ parameters.runAsPublic }} |
| 61 |
publishUsingPipelines: ${{ parameters.enablePublishUsingPipelines }} |
| 62 |
enablePublishBuildArtifacts: ${{ parameters.enablePublishBuildArtifacts }} |
| 63 |
|
| 64 |
- ${{ if eq(parameters.graphFileGeneration.enabled, true) }}: |
| 65 |
- template: ../job/generate-graph-files.yml |
| 66 |
parameters: |
| 67 |
continueOnError: ${{ parameters.continueOnError }} |
| 68 |
includeToolset: ${{ parameters.graphFileGeneration.includeToolset }} |
| 69 |
dependsOn: |
| 70 |
- Asset_Registry_Publish |
| 71 |
pool: |
| 72 |
vmImage: vs2017-win2016 |