feat 编译时插桩

This commit is contained in:
2026-01-24 12:17:50 +08:00
parent a61466e59e
commit 0b7cfa60e7

8
deploy/Jenkinsfile vendored
View File

@@ -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} .
""" """
} }
} }