You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[devops] Move check for hard disk space to the setup logic. (#24364)
This way we always check for available hard disk space (currently we don't
check for the API Diff pipeline).
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy file name to clipboardExpand all lines: tools/devops/automation/templates/common/setup.yml
+20Lines changed: 20 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,11 @@ parameters:
6
6
default: true
7
7
- name: keyringPass
8
8
type: string
9
+
- name: requiredDiskSpace
10
+
type: number
11
+
default: 20
12
+
- name: statusContext
13
+
type: string
9
14
10
15
steps:
11
16
- template: agent-cleanser/v1.yml@yaml-templates # Uninstalls mono, Xamarin.Mac (if installed) plus cleanses the Provisionator Xcode cache and kills processes at the end
@@ -28,6 +33,21 @@ steps:
28
33
continueOnError: true
29
34
timeoutInMinutes: 60
30
35
36
+
# Use a cmdlet to check if the space available in the device's root system is larger than the required amount (parameterized via 'requiredDiskSpace'). If there is not
37
+
# enough space available it:
38
+
# 1. Set the status of the build to error. It is not a failure since no tests have been ran.
39
+
# 2. Set a comment stating the same as what was sent to the status.
40
+
# 3. Cancel the pipeline and do not execute any of the following steps.
0 commit comments