|
|
@@ -141,16 +141,16 @@ pipeline {
|
|
|
echo "Creando todo..."
|
|
|
container('kubectl') {
|
|
|
withCredentials([file(credentialsId: env.Destino, variable: 'KUBECONFIG')]) {
|
|
|
- sh 'kubectl create -f K8S/reg-secret.yaml'
|
|
|
- sh 'kubectl create -f K8S/env-prod-configmap.yaml'
|
|
|
- sh 'kubectl create -f K8S/env-prod-db-configmap.yaml'
|
|
|
+ sh 'kubectl create -f K8S/reg-secret.yaml||true'
|
|
|
+ sh 'kubectl apply -f K8S/env-prod-configmap.yaml'
|
|
|
+ sh 'kubectl create -f K8S/env-prod-db-configmap.yaml||true'
|
|
|
|
|
|
- sh 'kubectl create -f K8S/db-deployment.yaml'
|
|
|
- sh 'kubectl create -f K8S/db-service.yaml'
|
|
|
+ sh 'kubectl create -f K8S/db-deployment.yaml||true'
|
|
|
+ sh 'kubectl create -f K8S/db-service.yaml||true'
|
|
|
|
|
|
sh 'sed -i "s/<TAG>/${BUILD_NUMBER}/" K8S/${NOMBRE_APP}-deployment.yaml'
|
|
|
sh 'kubectl apply -f K8S/${NOMBRE_APP}-deployment.yaml'
|
|
|
- sh 'kubectl create -f K8S/${NOMBRE_APP}-ingress.yaml'
|
|
|
+ sh 'kubectl create -f K8S/${NOMBRE_APP}-ingress.yaml||true'
|
|
|
}
|
|
|
}
|
|
|
}
|