Skip to content

Commit

Permalink
Update Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigodiaspilotogalvao authored Oct 10, 2023
1 parent 615796e commit 9f1d860
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -173,15 +173,15 @@ pipeline {
sh 'kubectl rollout restart deployment/treinamento-backend -n sme-ptrf-treino'
sh 'kubectl rollout restart deployment/treinamento-celery -n sme-ptrf-treino'
sh 'kubectl rollout restart deployment/treinamento-flower -n sme-ptrf-treino'
sh('rm -f '+"$home"+'/.kube/config')
//sh('rm -f '+"$home"+'/.kube/config')
}
}
}
stage('Deploy Treino2'){
steps {
withCredentials([file(credentialsId: "config_release", variable: 'config')]){
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 sme-ptrf-treino2'
sh 'kubectl rollout restart deployment/treinamento-celery -n sme-ptrf-treino2'
sh 'kubectl rollout restart deployment/treinamento-flower -n sme-ptrf-treino2'
Expand Down

0 comments on commit 9f1d860

Please sign in to comment.