environment test
This commit is contained in:
parent
98ab090f23
commit
8a7d2f0a2e
14
Jenkinsfile
vendored
14
Jenkinsfile
vendored
|
@ -95,14 +95,12 @@ podTemplate(
|
|||
|
||||
stage('Deploy Application on K8s') {
|
||||
container('kubectl') {
|
||||
// withKubeConfig([
|
||||
// credentialsId: 'microk8s-cluster',
|
||||
// serverUrl: env.K8s_SERVER_URL,
|
||||
// contextName: env.K8s_CONTEXT_NAME,
|
||||
// clusterName: env.K8s_CLUSTER_NAME]) {
|
||||
// sh 'kubectl config view'
|
||||
// }
|
||||
sh 'kubectl config view'
|
||||
withKubeConfig([
|
||||
credentialsId: 'jenkins-admin-secret',
|
||||
serverUrl: 'https://192.168.50.10:16443',
|
||||
clusterName: 'microk8s']) {
|
||||
sh 'kubectl config view'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user