-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlist-deprecated-tasks.yml
58 lines (51 loc) · 1.52 KB
/
list-deprecated-tasks.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
parameters:
- name: includeUsage
displayName: Process pipeline runs to find deprecated task usage
type: boolean
default: true
- name: variableGroup
displayName: Variable group with AZDO_* variables
type: string
default: '<variable group name>'
name: $(Date:yyyyMMdd)$(Rev:.r)-$(Build.DefinitionVersion)-$(SourceBranchName)-${{ replace(parameters.variableGroup,'<variable group name>','') }}-$(Build.BuildId)
pr:
autoCancel: false
branches:
include:
- '*'
drafts: false
paths:
exclude:
- '.devcontainer/**'
- 'visuals/**'
- '*.md'
schedules:
- cron: '0 0 * * Tue,Fr'
displayName: 'Bi-weekly build (UTC)'
# Run if there are no changes
always: 'true'
branches:
include:
- main
trigger: none
variables:
- ${{ if ne(parameters.variableGroup,'<variable group name>') }}:
- group: ${{ parameters.variableGroup }} # can override AZDO_ORG_SERVICE_URL, AZDO_PROJECT, AZDO_PERSONAL_ACCESS_TOKEN
- name: scriptDirectory
value: $(Build.SourcesDirectory)/scripts/pipelines
jobs:
- job: retrievalScripts
displayName: 'Deprecated tasks'
pool:
name: 'Azure Pipelines'
vmImage: ubuntu-latest
steps:
- pwsh: |
./list_deprecated_tasks.ps1 -ListTasksOnly:(!$${{ parameters.includeUsage }})
displayName: 'Find deprecated tasks'
workingDirectory: $(scriptDirectory)
env:
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
- publish: $(Build.ArtifactStagingDirectory)
displayName: 'Publish CSV file(s)'
artifact: DeprecatedTasks-$(System.PlanId)-$(System.JobId)