|
8 | 8 |
|
9 | 9 | steps:
|
10 | 10 |
|
11 |
| -# Ensure the `aws` CLI is installed so we can deploy later on, cache docker |
12 |
| -# images, etc. |
13 |
| -- bash: | |
14 |
| - set -e |
15 |
| - sudo apt-get install -y python3-setuptools |
16 |
| - pip3 install awscli --upgrade --user |
17 |
| - echo "##vso[task.prependpath]$HOME/.local/bin" |
18 |
| - displayName: Install awscli (Linux) |
19 |
| - condition: and(succeeded(), eq(variables['Agent.OS'], 'Linux')) |
20 |
| -- script: pip install awscli |
21 |
| - displayName: Install awscli (non-Linux) |
22 |
| - condition: and(succeeded(), ne(variables['Agent.OS'], 'Linux')) |
23 |
| - |
24 |
| -- bash: aws s3 help |
25 |
| -- bash: exit 1 |
26 |
| - |
27 | 11 | - checkout: self
|
28 | 12 | fetchDepth: 2
|
29 | 13 |
|
@@ -67,6 +51,19 @@ steps:
|
67 | 51 | condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))
|
68 | 52 | displayName: Check out submodules (Windows)
|
69 | 53 |
|
| 54 | +# Ensure the `aws` CLI is installed so we can deploy later on, cache docker |
| 55 | +# images, etc. |
| 56 | +- bash: | |
| 57 | + set -e |
| 58 | + sudo apt-get install -y python3-setuptools |
| 59 | + pip3 install awscli --upgrade --user |
| 60 | + echo "##vso[task.prependpath]$HOME/.local/bin" |
| 61 | + displayName: Install awscli (Linux) |
| 62 | + condition: and(succeeded(), eq(variables['Agent.OS'], 'Linux')) |
| 63 | +- script: pip install awscli |
| 64 | + displayName: Install awscli (non-Linux) |
| 65 | + condition: and(succeeded(), ne(variables['Agent.OS'], 'Linux')) |
| 66 | + |
70 | 67 | # Configure our CI_JOB_NAME variable which log analyzers can use for the main
|
71 | 68 | # step to see what's going on.
|
72 | 69 | - bash: echo "##vso[task.setvariable variable=CI_JOB_NAME]$SYSTEM_JOBNAME"
|
|
0 commit comments