Skip to content
Snippets Groups Projects
Commit 1e60aa9e authored by Soumith Kuppa Venakata's avatar Soumith Kuppa Venakata
Browse files

Updated Jenkinsfile - 1

parent f04ccc43
No related branches found
No related tags found
No related merge requests found
Pipeline #5944 failed
pipeline {
agent any
environment {
KUBECONFIG = credentials('9e770a4f-d5fe-46ff-8a40-471e8132a5af')
}
stages {
stage('Checkout') {
steps {
......@@ -12,13 +9,16 @@ pipeline {
stage('Deploy to Kubernetes') {
steps {
sh '''
mkdir -p ~/.kube
echo $KUBECONFIG
cp $KUBECONFIG ~/.kube/config
kubectl get nodes
kubectl apply -f wordpress-deployment-service.yaml
'''
withCredentials([file(credentialsId:'9e770a4f-d5fe-46ff-8a40-471e8132a5af', variable: 'KUBECONFIG')]) {
sh '''
mkdir -p ~/.kube
echo $KUBECONFIG
cp $KUBECONFIG ~/.kube/config
kubectl get nodes
kubectl apply -f wordpress-deployment-service.yaml
'''
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment