Skip to content

Commit d65d7c5

Browse files
Modification in the Courtesy Push pipeline (#21147)
* Simplification of courtesy push pipeline * Fixing order of parameters and removing redundant variables
1 parent 350c530 commit d65d7c5

File tree

3 files changed

+17
-21
lines changed

3 files changed

+17
-21
lines changed

azure-pipelines.yml

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,19 @@ resources:
1717
ref: refs/tags/release
1818

1919
parameters:
20+
- name: task_deployment
21+
displayName: Choose deployment options
22+
type: string
23+
default: 'Deploy task of Sprint'
24+
values:
25+
- 'Deploy all Tasks'
26+
- 'Deploy task of Sprint'
27+
- 'Deploy Hotfix'
2028
- name: task_name
21-
displayName: Task Name (List of tasks to build (e.g. BashV3 [, AzureCLIV1]))
29+
displayName: |
30+
To 'Deploy Hotfix' provide task names (e.g. BashV3,AzureCLIV1,PowerShellV2) else leave to default
2231
type: string
23-
default: TaskNameVN
24-
- name: deploy_all_tasks
25-
displayName: Build all tasks for deployment
26-
type: boolean
27-
default: false
32+
default: 'TaskNameVN'
2833
- name: enableCodeQL
2934
displayName: Enable CodeQL for run
3035
type: boolean
@@ -33,10 +38,6 @@ parameters:
3338
displayName: Flag to update LocalPackages buildconfig (for testing, this will be made default later)
3439
type: boolean
3540
default: false # note: keep in sync with ci\ci-test-tasks\canary-tests-v2.yml
36-
- name: skip_tests
37-
displayName: skipTests (Not for production use)
38-
type: boolean
39-
default: false
4041
- name: skip_publish
4142
displayName: skipPublish (Not for production use)
4243
type: boolean
@@ -52,7 +53,7 @@ variables:
5253
- name: taskName
5354
value: ${{ parameters.task_name }}
5455
- name: taskNameIsSet
55-
value: ${{ not(eq(parameters.task_name, 'TaskNameVN')) }}
56+
value: ${{ not(or(eq(parameters.task_deployment, 'Deploy all Tasks'), eq(parameters.task_deployment, 'Deploy task of Sprint'))) }}
5657
- name: runCodeQl
5758
value: ${{ eq(parameters.enableCodeQL, true) }}
5859
- name: system.debug
@@ -67,18 +68,13 @@ variables:
6768
value: '1'
6869
${{ else }}:
6970
value: ''
70-
- name: tasksSkipTests
71-
${{ if eq(parameters.skip_tests, true) }}:
72-
value: 'true'
73-
${{ else }}:
74-
value: 'false'
7571
- name: tasksSkipPublish
7672
${{ if eq(parameters.skip_publish, true) }}:
7773
value: 'true'
7874
${{ else }}:
7975
value: 'false'
8076
- name: DEPLOY_ALL_TASKSVAR
81-
${{ if eq(parameters.deploy_all_tasks, true) }}:
77+
${{ if eq(parameters.task_deployment,'Deploy all Tasks') }}:
8278
value: 'true'
8379
${{ else }}:
8480
value: 'false'
@@ -155,7 +151,7 @@ extends:
155151
ArtifactName: IndividualNuGetPackages
156152
steps:
157153
- template: /ci/publish-steps.yml@self
158-
154+
159155
# Courtesy Push
160156
- job: courtesy_push
161157
displayName: Courtesy Push
@@ -220,7 +216,7 @@ extends:
220216
steps:
221217
- template: /ci/build-all-tasks.yml@self
222218
parameters:
223-
deploy_all_tasks: ${{ parameters.deploy_all_tasks }}
219+
deploy_all_tasks: ${{ eq(parameters.task_deployment, 'Deploy all Tasks') }}
224220

225221
# All tasks on Linux
226222
- job: build_all_linux

ci/build-all-steps.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,4 +222,4 @@ steps:
222222
eq(variables['Build.SourceBranch'], 'refs/heads/master')
223223
)
224224
continueOnError: true
225-
displayName: Create Release
225+
displayName: Create Release

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)