Skip to content

Commit

Permalink
Update Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigodiaspilotogalvao authored Oct 20, 2023
1 parent 8ea0249 commit e4d4264
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ pipeline {
steps {
withCredentials([file(credentialsId: "${kubeconfig}", variable: 'config')]){
sh('cp $config '+"$home"+'/.kube/config')
sh 'kubectl rollout restart deployment/qa-frontend -n sme-ptrf-qa'
sh 'kubectl rollout restart deployment/treinamento-frontend -n sigescola-treinamento'
sh('if [ -f '+"$home"+'/.kube/config ]; then rm -f '+"$home"+'/.kube/config; fi')
}
}
Expand All @@ -97,7 +97,7 @@ pipeline {
steps {
withCredentials([file(credentialsId: "${kubeconfig}", variable: 'config')]){
sh('cp $config '+"$home"+'/.kube/config')
sh 'kubectl rollout restart deployment/treinamento-frontend -n sigescola-treinamento'
sh 'kubectl rollout restart deployment/qa-frontend -n sme-ptrf-qa'
sh('if [ -f '+"$home"+'/.kube/config ]; then rm -f '+"$home"+'/.kube/config; fi')
}
}
Expand Down

0 comments on commit e4d4264

Please sign in to comment.