From 2d03017a396a528074515bca23ce250cd4077f03 Mon Sep 17 00:00:00 2001 From: Janani Vasudevan <49576785+jananivMS@users.noreply.github.com> Date: Wed, 13 May 2020 22:20:21 -0600 Subject: [PATCH] kustomize not found --- azure-pipelines.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 88f0dcce43e..0c2eeff601a 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -53,8 +53,8 @@ steps: targetType: 'inline' script: | set -x - mkdir -p $(go env GOPATH)/bin - mkfir -p /usr/local/kubebuilder + mkdir -p $(System.DefaultWorkingDirectory)/bin + mkdir -p /usr/local/kubebuilder go env os=$(go env GOOS) arch=$(go env GOARCH) @@ -63,15 +63,15 @@ steps: export PATH=$PATH:/usr/local/kubebuilder/bin echo '##vso[task.prependpath]/usr/local/kubebuilder/bin' # download kustomize - curl -o $(go env GOPATH)/bin/kustomize -sL https://go.kubebuilder.io/kustomize/${os}/${arch} + curl -o $(System.DefaultWorkingDirectory)/bin/kustomize -sL https://go.kubebuilder.io/kustomize/${os}/${arch} # set permission - chmod a+x $(go env GOPATH)/bin/* - chmod a+x $(go env GOPATH)/bin/kustomize - export PATH=$PATH:$(go env GOPATH)/bin - echo '##vso[task.prependpath]$(go env GOPATH)/bin' + chmod a+x $(System.DefaultWorkingDirectory)/bin/* + chmod a+x $(System.DefaultWorkingDirectory)/bin/kustomize + export PATH=$PATH:$(System.DefaultWorkingDirectory)/bin + echo '##vso[task.prependpath]$(System.DefaultWorkingDirectory)/bin' which kustomize kustomize version - cp $(go env GOPATH)/bin/kustomize kustomize + cp $(System.DefaultWorkingDirectory)/bin/kustomize $(System.DefaultWorkingDirectory)/kustomize go mod download make install-test-dependencies workingDirectory: '$(System.DefaultWorkingDirectory)'