[19.02.20] Switch tag and deploy back, AGAIN
This commit is contained in:
parent
46148e1edd
commit
8c70115689
@ -71,15 +71,6 @@ try {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Deploy') {
|
|
||||||
sh "kubectl apply -f configuration/kubernetes/deployment.yaml"
|
|
||||||
sh "kubectl apply -f configuration/kubernetes/service.yaml"
|
|
||||||
|
|
||||||
sh "kubectl get pods"
|
|
||||||
|
|
||||||
sh "kubectl rollout status deployment/${env.APPLICATION_NAME}"
|
|
||||||
}
|
|
||||||
|
|
||||||
stage('Tag Repository') {
|
stage('Tag Repository') {
|
||||||
|
|
||||||
withDockerServer([uri: "${env.DOCKER_REPOSITORY_TCP}"]) {
|
withDockerServer([uri: "${env.DOCKER_REPOSITORY_TCP}"]) {
|
||||||
@ -101,6 +92,15 @@ try {
|
|||||||
sh "git push https://${GIT_USERNAME}:${GIT_PASSWORD}@${env.GIT_REPOSITORY_PATH} ${env.APPLICATION_VERSION}"
|
sh "git push https://${GIT_USERNAME}:${GIT_PASSWORD}@${env.GIT_REPOSITORY_PATH} ${env.APPLICATION_VERSION}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
stage('Deploy') {
|
||||||
|
sh "kubectl apply -f configuration/kubernetes/deployment.yaml"
|
||||||
|
sh "kubectl apply -f configuration/kubernetes/service.yaml"
|
||||||
|
|
||||||
|
sh "kubectl get pods"
|
||||||
|
|
||||||
|
sh "kubectl rollout status deployment/${env.APPLICATION_NAME}"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch ( exception ) {
|
} catch ( exception ) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user