[17.02.20] Kubernetes deployment settings
This commit is contained in:
parent
ab594d0f00
commit
693eea4ddb
@ -83,27 +83,29 @@ try {
|
|||||||
|
|
||||||
stage('Deploy') {
|
stage('Deploy') {
|
||||||
|
|
||||||
withCredentials(
|
withCredentials([kubeconfigFile(credentialsId: 'Kubernetes', variable: 'KUBECONFIG')]) {
|
||||||
[kubeconfigContent(
|
sh '''cat $KUBECONFIG'''
|
||||||
credentialsId: 'Kubernetes',
|
|
||||||
variable: 'CONFIG'
|
|
||||||
)]
|
|
||||||
) {
|
|
||||||
echo ${CONFIG}
|
|
||||||
}
|
}
|
||||||
// kubernetesDeploy(kubeconfigId: 'Kubernetes', // REQUIRED
|
|
||||||
//
|
// withCredentials(
|
||||||
// configs: '<ant-glob-pattern-for-resource-config-paths>', // REQUIRED
|
// [kubeconfigContent(
|
||||||
// enableConfigSubstitution: false,
|
// credentialsId: 'Kubernetes',
|
||||||
//
|
// variable: 'CONFIG'
|
||||||
// secretNamespace: "${env.NAMESPACE}",
|
// )]
|
||||||
// secretName: '<secret-name>',
|
// ) {
|
||||||
// dockerCredentials: [
|
// echo ${CONFIG}
|
||||||
// [credentialsId: '<credentials-id-for-docker-hub>'],
|
// }
|
||||||
// [credentialsId: '<credentials-id-for-other-private-registry>', url: '<registry-url>'],
|
kubernetesDeploy(kubeconfigId: 'Kubernetes', // REQUIRED
|
||||||
// ]
|
|
||||||
// )
|
configs: '/configuration/kubernetes/service.yaml', '/configuration/kubernetes/deployment.yaml', // REQUIRED
|
||||||
deploy()
|
enableConfigSubstitution: false,
|
||||||
|
|
||||||
|
secretNamespace: "${env.NAMESPACE}",
|
||||||
|
dockerCredentials: [
|
||||||
|
[credentialsId: 'Registry', url: "${env.DOCKER_REPOSITORY}"],
|
||||||
|
]
|
||||||
|
)
|
||||||
|
// deploy()
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Tag Repository') {
|
stage('Tag Repository') {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user