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