This repository was archived by the owner on Aug 4, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathAzurePipeline.yaml
More file actions
43 lines (33 loc) · 1.42 KB
/
AzurePipeline.yaml
File metadata and controls
43 lines (33 loc) · 1.42 KB
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
trigger: none
pr: none
schedules:
# Runs once per night at 01:00 in the morning (see https://crontab.guru/#00_01_*_*_*)
- cron: 00 01 * * *
displayName: WorkItemAgeCalculator
branches:
include:
- main
always: true
name: $(Date:yyyy.MM.dd)$(Rev:.r)
jobs:
- job: RunAzureDevopsPythonScripts
displayName: Run Azure DevOps Python Scripts
pool:
vmImage: ubuntu-latest
steps:
- checkout: self
- script: "python -m pip install -r requirements.txt"
displayName: "Install Python prerequisites"
# You don't want to put your PAT in the yaml file, make sure to use some kind of (secret) variable!
- task: PythonScript@0
displayName: Run Monte Carlo Simulation
inputs:
scriptSource: 'filePath'
scriptPath: '$(System.DefaultWorkingDirectory)/MonteCarlo.py'
arguments: '--OrganizationUrl "https://dev.azure.com/huserben/" --PersonalAccessToken "******" --ReleaseTag "MyProduct v1.33.7" --TargetDate "08.04.2024" --GoalTag "SprintGoal" --IterationLength "7"'
- task: PythonScript@0
displayName: Update Work Item Age
inputs:
scriptSource: 'filePath'
scriptPath: '$(System.DefaultWorkingDirectory)/CalculateWorkItemAge.py'
arguments: '--OrganizationUrl "https://dev.azure.com/huserben/" --TeamProject "WIA_Demo" --PersonalAccessToken "******" --FieldName "Age" --TrialRun "False"'