feat 编译时插桩
This commit is contained in:
13
deploy/Jenkinsfile
vendored
13
deploy/Jenkinsfile
vendored
@@ -57,10 +57,11 @@ pipeline {
|
||||
}
|
||||
}
|
||||
steps {
|
||||
script {
|
||||
// def goPath = sh(script: 'go env GOPATH', returnStdout: true).trim()
|
||||
// def orchestrionPath = "${goPath}/bin/orchestrion"
|
||||
sh """
|
||||
echo "=== 当前环境 ==="
|
||||
echo "PATH: \$PATH"
|
||||
echo "PWD: \$(pwd)"
|
||||
|
||||
export GOPROXY=https://goproxy.cn,direct
|
||||
export CGO_ENABLED=0
|
||||
export GOOS=linux
|
||||
@@ -69,7 +70,10 @@ pipeline {
|
||||
export PATH=\$PATH:/go/bin
|
||||
go install github.com/DataDog/orchestrion@v1.7.0
|
||||
|
||||
|
||||
echo "=== 查找 orchestrion ==="
|
||||
which orchestrion || echo "which: not found"
|
||||
find /go -name orchestrion 2>/dev/null
|
||||
ls -la /go/bin/ 2>/dev/null || echo "/go/bin 不存在"
|
||||
|
||||
orchestrion pin
|
||||
|
||||
@@ -77,7 +81,6 @@ pipeline {
|
||||
"""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('Push Docker Image') {
|
||||
agent any
|
||||
|
||||
Reference in New Issue
Block a user