[26.09.20] Pipeline changes

This commit is contained in:
Andy Sotheran 2020-09-26 19:14:56 +01:00
parent 9434872193
commit 9603794f91
2 changed files with 1 additions and 4 deletions

View File

@ -32,7 +32,7 @@ try {
timestamps { timestamps {
node ("${env.SLAVE_LABEL}") { node ("${env.SLAVE_LABEL}") {
stage('Initialise') { stage('Initialise') {
checkout([$class: 'GitSCM', branches: [[name: 'master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'Github', url: 'https://github.com/andyjk15/db-gateway.git']]]) checkout([$class: 'GitSCM', branches: [[name: 'master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'Github', url: env.GIT_REPOSITORY_URL]]])
env.APPLICATION_VERSION = get_application_version() env.APPLICATION_VERSION = get_application_version()
@ -83,7 +83,6 @@ try {
sh "docker push ${env.DOCKER_REPOSITORY}/${env.APPLICATION_NAME}:${env.APPLICATION_VERSION}" sh "docker push ${env.DOCKER_REPOSITORY}/${env.APPLICATION_NAME}:${env.APPLICATION_VERSION}"
sh "docker push ${env.DOCKER_REPOSITORY}/${env.APPLICATION_NAME}:latest" sh "docker push ${env.DOCKER_REPOSITORY}/${env.APPLICATION_NAME}:latest"
} }
} }
stage('Tag Repository') { stage('Tag Repository') {

View File

@ -5,6 +5,4 @@ APPLICATION_NAME=$1
kubectl apply -f configuration/kubernetes/deployment.yaml kubectl apply -f configuration/kubernetes/deployment.yaml
kubectl apply -f configuration/kubernetes/service.yaml kubectl apply -f configuration/kubernetes/service.yaml
kubectl get pods
kubectl rollout status deployment/${APPLICATION_NAME} --namespace=production kubectl rollout status deployment/${APPLICATION_NAME} --namespace=production