Skip to content

Commit e2ed7d7

Browse files
committed
Azure: Consistenly use and place displayName
1 parent bcdfe15 commit e2ed7d7

1 file changed

Lines changed: 15 additions & 12 deletions

File tree

.azure-pipelines.yml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,13 @@ stages:
123123
steps:
124124
- ${{ if item.container }}:
125125
# Workaround for missing sudo: https://github.com/microsoft/azure-pipelines-agent/issues/2043
126-
- bash: |
126+
- displayName: Install sudo in container
127+
bash: |
127128
/usr/bin/docker exec -u0 "$AGENT_CONTAINERID" /bin/sh -c \
128129
"apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -o Dpkg::Options::='--force-confold' -y install sudo software-properties-common"
129130
target: host
130-
- bash: |
131+
- displayName: Install required SW for containers
132+
bash: |
131133
set -ex
132134
osver=$(lsb_release -sr | cut -f1 -d.)
133135
pkgs="g++ git"
@@ -144,14 +146,15 @@ stages:
144146
sudo add-apt-repository ppa:git-core/ppa
145147
sudo apt-get -o Acquire::Retries=$NET_RETRY_COUNT update
146148
sudo apt-get -o Acquire::Retries=$NET_RETRY_COUNT -y -q --no-install-suggests --no-install-recommends install $pkgs
147-
displayName: 'Install required sw for containers'
148-
- task: Cache@2
149+
150+
- displayName: Get CCache
151+
task: Cache@2
149152
condition: eq(variables.B2_USE_CCACHE, '1')
150153
inputs:
151154
key: 'ccache|"${{ item.os }}-${{ item.container }}"|"${{ item.compiler }}"'
152155
path: $(B2_CCACHE_DIR)
153-
displayName: Get CCache
154-
- bash: |
156+
- displayName: Setup build environment
157+
bash: |
155158
set -ex
156159
if ! command -v "$B2_COMPILER" &> /dev/null && [[ "${{item.os}}" == "ubuntu"* ]]; then
157160
sudo apt-get -o Acquire::Retries=$NET_RETRY_COUNT -y -q --no-install-suggests --no-install-recommends install "$B2_COMPILER"
@@ -163,8 +166,8 @@ stages:
163166
[[ $(basename "$BUILD_REPOSITORY_NAME") = "boost-ci" ]] || cp -prf boost-ci-cloned/ci .
164167
rm -rf boost-ci-cloned
165168
source ci/azure-pipelines/install.sh
166-
displayName: 'Install'
167-
- bash: |
169+
- displayName: Build
170+
bash: |
168171
set -ex
169172
echo "SELF=$SELF"
170173
echo "BOOST_ROOT=$BOOST_ROOT"
@@ -184,12 +187,12 @@ stages:
184187
pool:
185188
vmImage: $(VM_IMAGE)
186189
steps:
187-
- script: |
190+
- displayName: Install
191+
script: |
188192
git clone --depth 1 --branch master https://github.com/boostorg/boost-ci.git boost-ci-cloned
189193
REM Copy ci folder if not testing Boost.CI
190194
if "%BUILD_REPOSITORY_NAME%" == "%BUILD_REPOSITORY_NAME:boost-ci=%" xcopy /s /e /q /i /y boost-ci-cloned\ci .\ci
191195
rmdir /s /q boost-ci-cloned
192196
ci\azure-pipelines\install.bat
193-
displayName: 'Install'
194-
- script: ci\build.bat
195-
displayName: 'Build'
197+
- displayName: Build
198+
script: ci\build.bat

0 commit comments

Comments
 (0)