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