stage('server-gateway 部署到dev环境') {
steps {
container ('maven') {
withCredentials([
kubeconfigFile(
credentialsId: env.KUBECONFIG_CREDENTIAL_ID,
variable: 'KUBECONFIG')
]) {
sh 'envsubst < server-gateway/deploy/deploy.yml | kubectl apply -f -'
}
}
}
}
单独部署测试的jenkinsfile(测试一下是否部署成功)
未经允许不得转载:工具盒子 » 单独部署测试的jenkinsfile(测试一下是否部署成功)