From 7d494c6366d3513dc552a6d9036ef1108c964ab2 Mon Sep 17 00:00:00 2001 From: areeqakbr Date: Wed, 26 Feb 2025 10:45:37 +0700 Subject: [PATCH] adding testing --- Jenkinsfile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index ed52b43..1127984 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -61,6 +61,13 @@ spec: } } + stage('testing output') + { + steps { + sh 'ls -la' + } + } + stage('Build and Push Docker Image') { steps { container('docker') { // Runs in the Docker container inside Kubernetes @@ -84,7 +91,7 @@ spec: stage('Deploy to Kubernetes') { steps { container('kubectl') { // ✅ Runs kubectl inside the correct container - sh 'kubectl version --client' + sh 'ls -la deploy/kubernetes/' withKubeConfig([credentialsId: '1c8bd8d9-1590-468c-afc7-24495d4330dc']) { // ✅ Uses the Jenkins credential sh ''' set -e