environment test

This commit is contained in:
crusader 2023-02-03 15:02:51 +00:00
parent dc39c7fc08
commit ee4746c74b

18
Jenkinsfile vendored
View File

@ -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
}
}
}
}
}
}