adding testing

This commit is contained in:
areeqakbr 2025-02-26 10:45:37 +07:00
parent 8daaf21f7d
commit 7d494c6366
1 changed files with 8 additions and 1 deletions

9
Jenkinsfile vendored
View File

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