Skip to content

Commit 009c893

Browse files
committed
adding template context
1 parent 1af1d6b commit 009c893

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

.azure-pipelines/generation-pipeline.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,8 @@ extends:
194194
jobs:
195195
- job: build_and_publish_typewriter
196196
templateContext:
197+
type: releaseJob
198+
isProduction: true
197199
outputs:
198200
- output: pipelineArtifact
199201
targetPath: '$(Build.ArtifactStagingDirectory)'
@@ -205,6 +207,8 @@ extends:
205207
jobs:
206208
- job: build_and_publish_kiota
207209
templateContext:
210+
type: releaseJob
211+
isProduction: true
208212
outputs:
209213
- output: pipelineArtifact
210214
targetPath: '$(Build.ArtifactStagingDirectory)'
@@ -223,6 +227,8 @@ extends:
223227
jobs:
224228
- job: v1_metadata
225229
templateContext:
230+
type: releaseJob
231+
isProduction: true
226232
outputs:
227233
- output: pipelineArtifact
228234
targetPath: '$(Build.ArtifactStagingDirectory)'
@@ -252,6 +258,8 @@ extends:
252258
jobs:
253259
- job: beta_metadata
254260
templateContext:
261+
type: releaseJob
262+
isProduction: true
255263
outputs:
256264
- output: pipelineArtifact
257265
targetPath: '$(Build.ArtifactStagingDirectory)'
@@ -305,6 +313,8 @@ extends:
305313
jobs:
306314
- job: csharp_v1_kiota
307315
templateContext:
316+
type: releaseJob
317+
isProduction: true
308318
inputs:
309319
- input: pipelineArtifact
310320
displayName: 'Downloading metadata from artifacts'
@@ -346,6 +356,8 @@ extends:
346356
jobs:
347357
- job: csharp_beta_kiota
348358
templateContext:
359+
type: releaseJob
360+
isProduction: true
349361
inputs:
350362
- input: pipelineArtifact
351363
displayName: 'Downloading metadata from artifacts'
@@ -387,6 +399,8 @@ extends:
387399
jobs:
388400
- job: go_v1
389401
templateContext:
402+
type: releaseJob
403+
isProduction: true
390404
inputs:
391405
- input: pipelineArtifact
392406
displayName: 'Downloading metadata from artifacts'
@@ -426,6 +440,8 @@ extends:
426440
jobs:
427441
- job: go_beta
428442
templateContext:
443+
type: releaseJob
444+
isProduction: true
429445
inputs:
430446
- input: pipelineArtifact
431447
displayName: 'Downloading metadata from artifacts'
@@ -465,6 +481,8 @@ extends:
465481
jobs:
466482
- job: java_v1_kiota
467483
templateContext:
484+
type: releaseJob
485+
isProduction: true
468486
inputs:
469487
- input: pipelineArtifact
470488
displayName: 'Downloading metadata from artifacts'
@@ -506,6 +524,8 @@ extends:
506524
jobs:
507525
- job: java_beta_kiota
508526
templateContext:
527+
type: releaseJob
528+
isProduction: true
509529
inputs:
510530
- input: pipelineArtifact
511531
displayName: 'Downloading metadata from artifacts'
@@ -547,6 +567,8 @@ extends:
547567
jobs:
548568
- job: php_beta_kiota
549569
templateContext:
570+
type: releaseJob
571+
isProduction: true
550572
inputs:
551573
- input: pipelineArtifact
552574
displayName: 'Downloading metadata from artifacts'
@@ -588,6 +610,8 @@ extends:
588610
jobs:
589611
- job: php_v1_kiota
590612
templateContext:
613+
type: releaseJob
614+
isProduction: true
591615
inputs:
592616
- input: pipelineArtifact
593617
displayName: 'Downloading metadata from artifacts'
@@ -629,6 +653,8 @@ extends:
629653
jobs:
630654
- job: typescript_v1
631655
templateContext:
656+
type: releaseJob
657+
isProduction: true
632658
inputs:
633659
- input: pipelineArtifact
634660
buildType: 'current'
@@ -666,6 +692,8 @@ extends:
666692
jobs:
667693
- job: typescript_beta
668694
templateContext:
695+
type: releaseJob
696+
isProduction: true
669697
inputs:
670698
- input: pipelineArtifact
671699
buildType: 'current'
@@ -703,6 +731,8 @@ extends:
703731
jobs:
704732
- job: typescript_sdk_v1
705733
templateContext:
734+
type: releaseJob
735+
isProduction: true
706736
inputs:
707737
- input: pipelineArtifact
708738
displayName: 'Downloading metadata from artifacts'
@@ -745,6 +775,8 @@ extends:
745775
jobs:
746776
- job: typescript_sdk_beta
747777
templateContext:
778+
type: releaseJob
779+
isProduction: true
748780
inputs:
749781
- input: pipelineArtifact
750782
displayName: 'Downloading metadata from artifacts'
@@ -787,6 +819,8 @@ extends:
787819
jobs:
788820
- job: python_v1
789821
templateContext:
822+
type: releaseJob
823+
isProduction: true
790824
inputs:
791825
- input: pipelineArtifact
792826
displayName: 'Downloading metadata from artifacts'
@@ -827,6 +861,8 @@ extends:
827861
jobs:
828862
- job: python_beta
829863
templateContext:
864+
type: releaseJob
865+
isProduction: true
830866
inputs:
831867
- input: pipelineArtifact
832868
displayName: 'Downloading metadata from artifacts'
@@ -867,6 +903,8 @@ extends:
867903
jobs:
868904
- job: csharp_beta_ccs
869905
templateContext:
906+
type: releaseJob
907+
isProduction: true
870908
inputs:
871909
- input: pipelineArtifact
872910
displayName: 'Downloading metadata from artifacts'
@@ -910,6 +948,8 @@ extends:
910948
jobs:
911949
- job: python_beta_ccs
912950
templateContext:
951+
type: releaseJob
952+
isProduction: true
913953
inputs:
914954
- input: pipelineArtifact
915955
displayName: 'Downloading metadata from artifacts'
@@ -953,6 +993,8 @@ extends:
953993
jobs:
954994
- job: typescript_beta_ccs
955995
templateContext:
996+
type: releaseJob
997+
isProduction: true
956998
inputs:
957999
- input: pipelineArtifact
9581000
displayName: 'Downloading metadata from artifacts'

.azure-pipelines/generation-templates/capture-openapi.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ jobs:
4343
variables:
4444
targets: $[ dependencies.get_conversion_settings.outputs['setTargets.targets'] ]
4545
templateContext:
46+
type: releaseJob
47+
isProduction: true
4648
outputs:
4749
- output: pipelineArtifact
4850
targetPath: '$(Build.ArtifactStagingDirectory)/$(Name)'
@@ -95,6 +97,8 @@ jobs:
9597
dependsOn: convert_openapi
9698
displayName: Publish
9799
templateContext:
100+
type: releaseJob
101+
isProduction: true
98102
inputs:
99103
- input: pipelineArtifact
100104
artifactName: '${{ parameters.cleanMetadataFolder }}-default'

0 commit comments

Comments
 (0)