feat 编译时插桩
This commit is contained in:
8
deploy/Jenkinsfile
vendored
8
deploy/Jenkinsfile
vendored
@@ -58,8 +58,8 @@ pipeline {
|
|||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
def goPath = sh(script: 'go env GOPATH', returnStdout: true).trim()
|
// def goPath = sh(script: 'go env GOPATH', returnStdout: true).trim()
|
||||||
def orchestrionPath = "${goPath}/bin/orchestrion"
|
// def orchestrionPath = "${goPath}/bin/orchestrion"
|
||||||
sh """
|
sh """
|
||||||
export GOPROXY=https://goproxy.cn,direct
|
export GOPROXY=https://goproxy.cn,direct
|
||||||
export CGO_ENABLED=0
|
export CGO_ENABLED=0
|
||||||
@@ -72,9 +72,9 @@ pipeline {
|
|||||||
ORCH_PATH=\$(which orchestrion)
|
ORCH_PATH=\$(which orchestrion)
|
||||||
echo "Found orchestrion at: \$ORCH_PATH"
|
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