[19.02.20] Indentation and adding github tagging

This commit is contained in:
andyjk15 2020-02-19 17:19:00 +00:00
parent 02199119f4
commit a3267fa992

View File

@ -69,7 +69,6 @@ try {
env.APPLICATION_VERSION, env.APPLICATION_VERSION,
env.APPLICATION_LABEL) env.APPLICATION_LABEL)
sh "cat configuration/kubernetes/deployment.yaml"
} }
stage('Deploy') { stage('Deploy') {
@ -91,6 +90,16 @@ try {
latest.push() latest.push()
} }
} }
withCredentials(
[usernamePassword(
credentialsId: env.GITHUB_CREDENTIALS_ID,
passwordVariable: 'GIT_PASSWORD',
usernameVariable: 'GIT_USERNAME'
)]
) {
sh "git tag ${env.APPLICATION_VERSION}"
sh "git push https://${GIT_USERNAME}:${GIT_PASSWORD}@${env.GIT_REPOSITORY_PATH} ${env.APPLICATION_VERSION}"
}
} }
} }
} }