environment test
This commit is contained in:
parent
dc39c7fc08
commit
ee4746c74b
18
Jenkinsfile
vendored
18
Jenkinsfile
vendored
|
@ -95,14 +95,18 @@ podTemplate(
|
|||
|
||||
stage('Deploy Application on K8s') {
|
||||
container('kubectl') {
|
||||
withKubeConfig([
|
||||
credentialsId: 'jenkins-admin-secret',
|
||||
serverUrl: 'https://192.168.50.10:16443',
|
||||
contextName: 'microk8s',
|
||||
clusterName: 'microk8s-cluster']) {
|
||||
sh 'kubectl config view'
|
||||
withKubeCredentials(kubectlCredentials: [[
|
||||
caCertificate: '',
|
||||
clusterName: 'microk8s',
|
||||
contextName: '',
|
||||
credentialsId: 'jenkins-admin-secret',
|
||||
namespace: 'kube-system',
|
||||
serverUrl: 'https://192.168.50.10:16443']]) {
|
||||
|
||||
kubectl config view
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user