fix
This commit is contained in:
@@ -40,6 +40,6 @@ BUILD_GOARCH=${GOARCH:-amd64}
|
||||
GOBINARY=${GOBINARY:-go}
|
||||
|
||||
# forgoing -i (incremental build) because it will be deprecated by tool chain.
|
||||
time GOOS=${BUILD_GOOS} GOARCH=${BUILD_GOARCH} ${GOBINARY} build \
|
||||
time GOOS=${BUILD_GOOS} CGO_ENABLED=0 GOARCH=${BUILD_GOARCH} ${GOBINARY} build \
|
||||
-o ${OUT} \
|
||||
${BUILDPATH}
|
||||
|
||||
12
test/network/Jenkinsfile
vendored
12
test/network/Jenkinsfile
vendored
@@ -15,13 +15,13 @@ pipeline {
|
||||
sh 'mkdir -p ~/.kube'
|
||||
sh 'mkdir ./kustomize/network/etcd'
|
||||
withCredentials([kubeconfigContent(credentialsId: 'net-kubeconfig', variable: 'KUBECONFIG_CONTENT'),
|
||||
file(credentialsId: 'etcd-ca', variable: 'etcd-ca'),
|
||||
file(credentialsId: 'etcd-crt', variable: 'etcd-crt'),
|
||||
file(credentialsId: 'etcd-key', variable: 'etcd-key')]) {
|
||||
file(credentialsId: 'etcd-ca', variable: 'etcd_ca'),
|
||||
file(credentialsId: 'etcd-crt', variable: 'etcd_crt'),
|
||||
file(credentialsId: 'etcd-key', variable: 'etcd_key')]) {
|
||||
sh 'echo "$KUBECONFIG_CONTENT" > ~/.kube/config'
|
||||
sh "cp \${etcd-ca} ./kustomize/network/etcd/ca"
|
||||
sh "cp \${etcd-key} ./kustomize/network/etcd/key"
|
||||
sh "cp \${etcd-crt} ./kustomize/network/etcd/crt"
|
||||
sh "cp \${etcd_ca} ./kustomize/network/etcd/ca"
|
||||
sh "cp \${etcd_key} ./kustomize/network/etcd/key"
|
||||
sh "cp \${etcd_crt} ./kustomize/network/etcd/crt"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user