From 6929f5d6e681a1fcb4289df8b849d40cf0eba4e8 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Wed, 14 Aug 2019 17:47:55 +0100 Subject: [PATCH] build: make azure pipelines stop if installs fail --- azure-pipelines.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index d85e02c72..42a0cd138 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -100,6 +100,7 @@ steps: echo "##vso[task.setvariable variable=GO_LATEST]true" echo "Latest Go version: $latestGo" condition: eq( variables['GO_VERSION'], 'latest' ) + continueOnError: false displayName: "Get latest Go version" - bash: | @@ -110,13 +111,14 @@ steps: shopt -s extglob shopt -s dotglob mv !(gopath) '$(modulePath)' + continueOnError: false displayName: Remove old Go, set GOBIN/GOROOT, and move project into GOPATH - task: CacheBeta@0 - continueOnError: true inputs: key: go-build-cache | "$(Agent.JobName)" path: $(GOCACHE) + continueOnError: true displayName: Cache go build condition: ne( variables['GOCACHE'], '' ) @@ -128,6 +130,7 @@ steps: sudo chown root:$USER /etc/fuse.conf sudo apt-get install fuse libfuse-dev rpm pkg-config condition: eq( variables['Agent.OS'], 'Linux' ) + continueOnError: false displayName: Install Libraries on Linux - bash: | @@ -135,6 +138,7 @@ steps: brew tap caskroom/cask brew cask install osxfuse condition: eq( variables['Agent.OS'], 'Darwin' ) + continueOnError: false displayName: Install Libraries on macOS - powershell: | @@ -150,6 +154,7 @@ steps: $path = (get-command mingw32-make.exe).Path Copy-Item -Path $path -Destination (Join-Path (Split-Path -Path $path) 'make.exe') condition: eq( variables['Agent.OS'], 'Windows_NT' ) + continueOnError: false displayName: Install Libraries on Windows @@ -161,12 +166,14 @@ steps: sudo chown ${USER}:${USER} $(gorootDir) tar -C $(gorootDir) -xzf "$(GO_VERSION).linux-$(GO_INSTALL_ARCH).tar.gz" condition: eq( variables['Agent.OS'], 'Linux' ) + continueOnError: false displayName: Install Go on Linux - bash: | wget "https://dl.google.com/go/$(GO_VERSION).darwin-$(GO_INSTALL_ARCH).tar.gz" sudo tar -C $(gorootDir) -xzf "$(GO_VERSION).darwin-$(GO_INSTALL_ARCH).tar.gz" condition: eq( variables['Agent.OS'], 'Darwin' ) + continueOnError: false displayName: Install Go on macOS - powershell: | @@ -176,6 +183,7 @@ steps: Write-Host "Extracting Go" Expand-Archive "$(GO_VERSION).windows-$(GO_INSTALL_ARCH).zip" -DestinationPath "$(gorootDir)" condition: eq( variables['Agent.OS'], 'Windows_NT' ) + continueOnError: false displayName: Install Go on Windows # Display environment for debugging