diff --git a/deploy/Jenkinsfile b/deploy/Jenkinsfile index 21ac357..203be04 100644 --- a/deploy/Jenkinsfile +++ b/deploy/Jenkinsfile @@ -57,17 +57,19 @@ pipeline { } } steps { - 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 - go install github.com/DataDog/orchestrion@v1.7.0 - ${orchestrionPath} pin - ${orchestrionPath} go build -o ${env.APP_NAME} . - """ + 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 + go install github.com/DataDog/orchestrion@v1.7.0 + ${orchestrionPath} pin + ${orchestrionPath} go build -o ${env.APP_NAME} . + """ + } } }