From ece659019e2f2ef56192411187df57cf1e2dc12b Mon Sep 17 00:00:00 2001 From: "DESKTOP-V763RJ7\\Administrator" <835606593@qq.com> Date: Sat, 24 Jan 2026 12:24:00 +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 | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/deploy/Jenkinsfile b/deploy/Jenkinsfile index b18c67d..9bdbee2 100644 --- a/deploy/Jenkinsfile +++ b/deploy/Jenkinsfile @@ -57,25 +57,28 @@ pipeline { } } steps { - script { -// def goPath = sh(script: 'go env GOPATH', returnStdout: true).trim() -// def orchestrionPath = "${goPath}/bin/orchestrion" - sh """ - export GOPROXY=https://goproxy.cn,direct - export CGO_ENABLED=0 - export GOOS=linux - export GOARCH=amd64 + sh """ + echo "=== 当前环境 ===" + echo "PATH: \$PATH" + echo "PWD: \$(pwd)" - export PATH=\$PATH:/go/bin - go install github.com/DataDog/orchestrion@v1.7.0 + export GOPROXY=https://goproxy.cn,direct + export CGO_ENABLED=0 + export GOOS=linux + export GOARCH=amd64 + export PATH=\$PATH:/go/bin + go install github.com/DataDog/orchestrion@v1.7.0 + echo "=== 查找 orchestrion ===" + which orchestrion || echo "which: not found" + find /go -name orchestrion 2>/dev/null + ls -la /go/bin/ 2>/dev/null || echo "/go/bin 不存在" - orchestrion pin + orchestrion pin - orchestrion go build -o ${env.APP_NAME} . - """ - } + orchestrion go build -o ${env.APP_NAME} . + """ } }