完善jenkins文件, 增加部署流程

This commit is contained in:
2023-08-12 11:15:49 +08:00
parent 62d1179247
commit 5ec5b82a9a

12
Jenkinsfile vendored
View File

@@ -65,6 +65,18 @@ pipeline{
}
stage("重新部署"){
steps{
sh "kubectl --kubeconfig=/root/kube/k3s.yaml apply -k k8s/${env.BRANCH_NAME}/"
sh "kubectl --kubeconfig=/root/kube/k3s.yaml rollout restart deployment/coal-api --namespace coal-${env.BRANCH_NAME}/"
}
}
}