From 7daa4dd5cc225368986abfd6c2a5b7b97f2dccb8 Mon Sep 17 00:00:00 2001 From: dustoair <107600816+dustoair@users.noreply.github.com> Date: Wed, 27 Jul 2022 10:59:45 +0800 Subject: [PATCH] K --- Jenkinsfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index e787bbc..7644e94 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -26,6 +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' } } //部署可能意味着各种步骤,具体取决于项目或组织的要求,并且可能是从构建的工件发送到Artifactory服务器,将代码推送到生产系统的任何步骤。