提交 6ce4b54e 编写于 作者: M magicsong

fix

上级 7314064e
......@@ -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}
......@@ -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"
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册