Skip to content

Commit 38acbe0

Browse files
committed
fixup! Add a build definition for Azure DevOps
Ignore failures to mount the network share. It is purely to speed up recurrent builds, and it is only in effect in non-forked builds, anyway, so it is in a way optional. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent bcf5b95 commit 38acbe0

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

azure-pipelines.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,9 @@ phases:
167167
timeoutInMinutes: 240
168168
steps:
169169
- powershell: |
170-
# Helper to check the error level of the latest command (exit with error when appropriate)
171-
function c() { if (!$?) { exit(1) } }
172-
173170
if ("$GITFILESHAREPWD" -ne "" -and "$GITFILESHAREPWD" -ne "`$`(gitfileshare.pwd)") {
174-
net use s: \\gitfileshare.file.core.windows.net\test-cache "$GITFILESHAREPWD" /user:AZURE\gitfileshare /persistent:no; c
175-
cmd /c mklink /d "$(Build.SourcesDirectory)\test-cache" S:\; c
171+
net use s: \\gitfileshare.file.core.windows.net\test-cache "$GITFILESHAREPWD" /user:AZURE\gitfileshare /persistent:no
172+
cmd /c mklink /d "$(Build.SourcesDirectory)\test-cache" S:\
176173
}
177174
displayName: 'mount test-cache'
178175
env:

0 commit comments

Comments
 (0)