adding new credentials
This commit is contained in:
parent
c2d58d263a
commit
74dc9cbc62
|
|
@ -81,16 +81,19 @@ spec:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('testing network to kubernetes')
|
stage('Testing Network to Kubernetes') {
|
||||||
{
|
|
||||||
steps {
|
steps {
|
||||||
container('kubectl') {
|
container('kubectl') {
|
||||||
sh '''
|
withCredentials([string(credentialsId: 'a03aac83-cfb5-462c-af9e-c0904ea4be9b', variable: 'KUBE_TOKEN')]) {
|
||||||
ping -c 4 https://console.kube.winteraccess.id/api/endpoints/1/kubernetes
|
sh '''
|
||||||
'''
|
kubectl --server=https://console.kube.winteraccess.id/api/endpoints/1/kubernetes \
|
||||||
|
--token=$KUBE_TOKEN \
|
||||||
|
--kubeconfig=/dev/null \
|
||||||
|
get nodes
|
||||||
|
'''
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
stage('Debug Kubernetes') {
|
stage('Debug Kubernetes') {
|
||||||
steps {
|
steps {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue