[19.02.20] TAG/DEPLOY switch
This commit is contained in:
parent
3f8768bda4
commit
1b50316449
@ -92,17 +92,6 @@ try {
|
||||
sh "sed -it 's/LABEL/${env.APPLICATION_LABEL}/g' configuration/kubernetes/service.yaml"
|
||||
}
|
||||
|
||||
stage('Deploy') {
|
||||
kubernetesDeploy configs: '**/configuration/kubernetes/*.yaml',
|
||||
deleteResource: true,
|
||||
dockerCredentials: [[credentialsId: 'Registry', url: "${env.DOCKER_REPOSITORY_URL}"]],
|
||||
kubeConfig: [path: ''],
|
||||
kubeconfigId: 'Kubernetes',
|
||||
// secretName: '',
|
||||
ssh: [sshCredentialsId: '*', sshServer: ''],
|
||||
textCredentials: [certificateAuthorityData: '', clientCertificateData: '', clientKeyData: '', serverUrl: 'https://']
|
||||
}
|
||||
|
||||
stage('Tag Repository') {
|
||||
|
||||
withDockerServer([uri: "${env.DOCKER_REPOSITORY_TCP}"]) {
|
||||
@ -124,8 +113,22 @@ try {
|
||||
sh "git push https://${GIT_USERNAME}:${GIT_PASSWORD}@${env.GIT_REPOSITORY_PATH} ${env.APPLICATION_VERSION}"
|
||||
}
|
||||
}
|
||||
|
||||
stage('Deploy') {
|
||||
kubernetesDeploy configs: '**/configuration/kubernetes/*.yaml',
|
||||
deleteResource: true,
|
||||
dockerCredentials: [[credentialsId: 'Registry', url: "${env.DOCKER_REPOSITORY_URL}"]],
|
||||
kubeConfig: [path: ''],
|
||||
kubeconfigId: 'Kubernetes',
|
||||
// secretName: '',
|
||||
ssh: [sshCredentialsId: '*', sshServer: ''],
|
||||
textCredentials: [certificateAuthorityData: '', clientCertificateData: '', clientKeyData: '', serverUrl: 'https://']
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch ( exception ) {
|
||||
currentBuild.result = 'FAILURE'
|
||||
throw exception
|
||||
} finally {
|
||||
sh "echo SUCCESS"
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user