From 154024b4070ed62331584d811b1ac5714970d004 Mon Sep 17 00:00:00 2001 From: Arris Li Date: Fri, 6 Sep 2024 17:19:02 +1200 Subject: [PATCH] preset go path in pipeline --- .../onebranch/templates/template-buildrp-buildaro.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.pipelines/onebranch/templates/template-buildrp-buildaro.yml b/.pipelines/onebranch/templates/template-buildrp-buildaro.yml index 53abb7032e5..3de3ccc7f25 100644 --- a/.pipelines/onebranch/templates/template-buildrp-buildaro.yml +++ b/.pipelines/onebranch/templates/template-buildrp-buildaro.yml @@ -1,11 +1,18 @@ steps: + - task: Bash@3 + displayName: Add GOBIN to PATH + inputs: + targetType: inline + script: | + export GOPATH=$(Agent.TempDirectory) + echo "##vso[task.prependpath]$(go env GOPATH)/bin" + workingDirectory: $(Build.SourcesDirectory) - task: Bash@3 displayName: ⚙️ Make ARO inputs: targetType: inline script: | export GOPATH=$(Agent.TempDirectory) - echo "##vso[task.prependpath]$(Agent.TempDirectory)/bin" export TAG=$(git describe --exact-match 2>/dev/null) export COMMIT=$(git rev-parse --short=7 HEAD)$([[ $(git status --porcelain) = "" ]] || echo -dirty) if [ -z "$TAG" ];