From acbfc92f0508a4706057c62d52011b076444d310 Mon Sep 17 00:00:00 2001 From: "DESKTOP-V763RJ7\\Administrator" <835606593@qq.com> Date: Sat, 24 Jan 2026 11:53:52 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=E7=BC=96=E8=AF=91=E6=97=B6=E6=8F=92?= =?UTF-8?q?=E6=A1=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/Jenkinsfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/deploy/Jenkinsfile b/deploy/Jenkinsfile index 11b0986..4fa7f5a 100644 --- a/deploy/Jenkinsfile +++ b/deploy/Jenkinsfile @@ -56,14 +56,18 @@ pipeline { args '-u root:root -v $GO_MOD_CACHE_DIR:/go/pkg/mod -v $GO_BUILD_CACHE_DIR:/root/.cache/go-build' } } + environment { + // 将 Go 的 bin 目录添加到 PATH 中 + PATH = "$PATH:${sh(script: 'go env GOPATH', returnStdout: true).trim()}/bin" + } steps { sh """ export GOPROXY=https://goproxy.cn,direct export CGO_ENABLED=0 export GOOS=linux export GOARCH=amd64 - go install github.com/DataDog/orchestrion@latest - orchestrion go build -o ${env.APP_NAME} . + go install github.com/DataDog/orchestrion@v1.7.0 + go build -toolexec="orchestrion toolexec" -o ${env.APP_NAME} . """ } }