mirror of
https://codeup.aliyun.com/64f7d6b8ce01efaafef1e678/coal/coal.git
synced 2026-01-25 07:46:40 +08:00
完善jenkins文件, 增加部署流程
This commit is contained in:
12
Jenkinsfile
vendored
12
Jenkinsfile
vendored
@@ -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}/"
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user