feat 编译时插桩
This commit is contained in:
24
deploy/Jenkinsfile
vendored
24
deploy/Jenkinsfile
vendored
@@ -57,17 +57,19 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
def goPath = sh(script: 'go env GOPATH', returnStdout: true).trim()
|
script {
|
||||||
def orchestrionPath = "${goPath}/bin/orchestrion"
|
def goPath = sh(script: 'go env GOPATH', returnStdout: true).trim()
|
||||||
sh """
|
def orchestrionPath = "${goPath}/bin/orchestrion"
|
||||||
export GOPROXY=https://goproxy.cn,direct
|
sh """
|
||||||
export CGO_ENABLED=0
|
export GOPROXY=https://goproxy.cn,direct
|
||||||
export GOOS=linux
|
export CGO_ENABLED=0
|
||||||
export GOARCH=amd64
|
export GOOS=linux
|
||||||
go install github.com/DataDog/orchestrion@v1.7.0
|
export GOARCH=amd64
|
||||||
${orchestrionPath} pin
|
go install github.com/DataDog/orchestrion@v1.7.0
|
||||||
${orchestrionPath} go build -o ${env.APP_NAME} .
|
${orchestrionPath} pin
|
||||||
"""
|
${orchestrionPath} go build -o ${env.APP_NAME} .
|
||||||
|
"""
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user