From 54ad90d0c33f5338bfef78c256d657cb203c514c Mon Sep 17 00:00:00 2001 From: dustoair <107600816+dustoair@users.noreply.github.com> Date: Wed, 27 Jul 2022 11:02:20 +0800 Subject: [PATCH] /go/bin/go --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 7644e94..272e287 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -26,8 +26,8 @@ pipeline { steps { sh 'echo go' sh 'go version' - sh 'CGO_ENABLED=0 GOOS=linux GOARCH=arm64 /usr/local/go/bin/go mod tidy' - sh 'CGO_ENABLED=0 GOOS=linux GOARCH=arm64 /usr/local/go/bin/go build -o ipregion main.go' + sh 'CGO_ENABLED=0 GOOS=linux GOARCH=arm64 /var/jenkins_home/go/bin/go mod tidy' + sh 'CGO_ENABLED=0 GOOS=linux GOARCH=arm64 /var/jenkins_home/go/bin/go build -o ipregion main.go' } } //部署可能意味着各种步骤,具体取决于项目或组织的要求,并且可能是从构建的工件发送到Artifactory服务器,将代码推送到生产系统的任何步骤。