feat 编译时插桩
This commit is contained in:
8
deploy/Jenkinsfile
vendored
8
deploy/Jenkinsfile
vendored
@@ -58,8 +58,8 @@ pipeline {
|
||||
}
|
||||
steps {
|
||||
script {
|
||||
def goPath = sh(script: 'go env GOPATH', returnStdout: true).trim()
|
||||
def orchestrionPath = "${goPath}/bin/orchestrion"
|
||||
// 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
|
||||
@@ -72,9 +72,9 @@ pipeline {
|
||||
ORCH_PATH=\$(which orchestrion)
|
||||
echo "Found orchestrion at: \$ORCH_PATH"
|
||||
|
||||
${orchestrionPath} pin
|
||||
orchestrion pin
|
||||
|
||||
${orchestrionPath} go build -o ${env.APP_NAME} .
|
||||
orchestrion go build -o ${env.APP_NAME} .
|
||||
"""
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user