diff --git a/configuration/pipelines/build.groovy b/configuration/pipelines/build.groovy index 6226e42..00aef9e 100644 --- a/configuration/pipelines/build.groovy +++ b/configuration/pipelines/build.groovy @@ -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: '', // REQUIRED -// enableConfigSubstitution: false, -// -// secretNamespace: "${env.NAMESPACE}", -// secretName: '', -// dockerCredentials: [ -// [credentialsId: ''], -// [credentialsId: '', 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') {