adding testing
This commit is contained in:
parent
8daaf21f7d
commit
7d494c6366
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue