forked from microsoft/fluentui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtools.yml
32 lines (29 loc) · 1.31 KB
/
tools.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
# Install versions of Node and Yarn required by build pipelines.
steps:
- task: NodeTool@0
inputs:
versionSpec: '14.18.1'
checkLatest: false
displayName: 'Install Node.js'
- script: |
npm i -g yarn@1
displayName: 'Install yarn'
# For multiline scripts, we want the whole task to fail if any line of the script fails.
# ADO doesn't have bash configured this way by default. To fix we override the SHELLOPTS built-in variable.
# https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html
# The options below include ADO defaults (braceexpand:hashall:interactive-comments) plus
# errexit:errtrace for better error behavior.
- script: |
echo "##vso[task.setvariable variable=shellopts]braceexpand:hashall:interactive-comments:errexit:errtrace"
displayName: Force exit on error (bash)
# Log all the environment variables since it can be useful for debugging.
# (This happens automatically for the built-in agents, but not for custom agents.)
- script: |
printenv | sort
echo "SHELLOPTS $SHELLOPTS"
echo 'deployBasePath "$(deployBasePath)"'
echo 'deployUrl "$(deployUrl)"'
echo 'isPR "$(isPR)"'
echo 'targetBranch "$(targetBranch)"'
displayName: Log environment variables (Linux)
condition: eq(variables['Agent.OS'], 'Linux')