Skip to content

Commit df65cb4

Browse files
DmitriiBobreshevMaxim Zaytsev
andauthored
[Deployment CI] Add parameter to build all tasks (#19324)
Co-authored-by: Maxim Zaytsev <[email protected]>
1 parent ea29e36 commit df65cb4

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

azure-pipelines.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ parameters:
3232
displayName: Create hotfix PRs and Release
3333
type: boolean
3434
default: false
35+
- name: deploy_all_tasks
36+
displayName: Build all tasks for deployment
37+
type: boolean
38+
default: false
3539

3640
variables:
3741
currentDate: $[ format('{0:yyyy}{0:MM}{0:dd}', pipeline.startTime) ]
@@ -110,6 +114,8 @@ jobs:
110114
name: 1ES-Shared-Hosted-Pool_Windows-Server-2022
111115
steps:
112116
- template: ci/build-all-tasks.yml
117+
parameters:
118+
deploy_all_tasks: ${{ parameters.deploy_all_tasks }}
113119

114120
# All tasks on Linux
115121
- job: build_all_linux

ci/build-all-tasks.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# This YAML is intended for building ALL tasks and publish them as an artifact
22
# to be used later for Tasks Deployment train
3+
parameters:
4+
- name: deploy_all_tasks
5+
type: boolean
36

47
steps:
58
# Clean
@@ -22,7 +25,13 @@ steps:
2225

2326
# Build tasks
2427
- script: node make.js serverBuild --task "$(task_pattern)"
25-
displayName: Build tasks
28+
displayName: Build tasks using pattern
29+
condition: and(succeeded(), eq(parameters.deploy_all_tasks, 'false'))
30+
31+
# Build all tasks
32+
- script: node make.js serverBuild
33+
displayName: Build all tasks
34+
condition: and(succeeded(), eq(parameters.deploy_all_tasks, 'true'))
2635

2736
# Stage tasks individually into the package directory
2837
- script: node ./ci/stage-package.js true individually

0 commit comments

Comments
 (0)