Skip to content

Commit

Permalink
Update Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigodiaspilotogalvao authored Sep 5, 2023
1 parent 0081a5d commit 48ad5cc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ pipeline {
sh "kubectl rollout restart deployment/ptrf-backend -n ${namespace}"
sh "kubectl rollout restart deployment/ptrf-celery -n ${namespace}"
sh "kubectl rollout restart deployment/ptrf-flower -n ${namespace}"
sh('rm -f '+"$home"+'/.kube/config')
//sh('rm -f '+"$home"+'/.kube/config')
}
}
}
Expand All @@ -151,19 +151,19 @@ pipeline {
parallel {
stage('Deploy Treino'){
steps {
sh('rm -f '+"$home"+'/.kube/config')
sh('cp $config '+"$home"+'/.kube/config')
//sh('rm -f '+"$home"+'/.kube/config')
//sh('cp $config '+"$home"+'/.kube/config')
sh 'kubectl rollout restart deployment/treinamento-backend -n sigescola-treinamento'
sh 'kubectl rollout restart deployment/treinamento-celery -n sigescola-treinamento'
sh 'kubectl rollout restart deployment/treinamento-flower -n sigescola-treinamento'
sh('rm -f '+"$home"+'/.kube/config')
//sh('rm -f '+"$home"+'/.kube/config')
}
}

stage('Deploy Treinamento2'){
steps {
sh('rm -f '+"$home"+'/.kube/config')
sh('cp $config '+"$home"+'/.kube/config')
//sh('rm -f '+"$home"+'/.kube/config')
//sh('cp $config '+"$home"+'/.kube/config')
sh 'kubectl rollout restart deployment/treinamento-backend -n sigescola-treinamento2'
sh 'kubectl rollout restart deployment/treinamento-celery -n sigescola-treinamento2'
sh 'kubectl rollout restart deployment/treinamento-flower -n sigescola-treinamento2'
Expand Down

0 comments on commit 48ad5cc

Please sign in to comment.