Issue in Jenkins lab (Jenkins Project: Building CI/CD Pipeline for Scalable Web Applications)

Datapipeline {
agent any
environment {
KUBECONFIG = credentials(‘kubeconfig’)
}

stages {
    stage('Checkout') {
        steps {
            sh 'git clone https://github.com/kodekloudhub/jenkins-project.git'
            sh "ls -ltr"
        }
    }
    stage('Approval Required') {
        steps {
            script {
                def userInput = input(id: 'userInput', message: 'Approve and Provide docker image', parameters: [
                    string(name: 'PARAMETER_NAME', defaultValue: 'defaultValue', description: 'Enter the docker image')
                ])
                env.PARAMETER_VALUE = userInput
            }
        }
    }
    stage('Deploy to EKS Prod env')     
        {
        steps
            {
            script 
                {   
                    withCredentials([aws(accessKeyVariable: 'AWS_ACCESS_KEY_ID', secretKeyVariable: 'AWS_SECRET_ACCESS_KEY', credentialsId: 'aws')]) {
                    def deploymentExists = sh(script: "kubectl get deployment flask-app-deployment-prod -n prod  -o json", returnStatus: true)
                        if (deploymentExists == 0) 
                            {
                                sh "kubectl set image -n prod deployment/flask-app-deployment-prod flask-app=${env.PARAMETER_VALUE} --record"
                                echo "Kubernetes deployment updated successfully"
                            } 
                        else 
                            {
                                sh "kubectl apply -f jenkins-project/deployment_production.yaml"
                                echo "Kubernetes deployment created successfully"
                            }
                    }
                }
            }
        }
}

}
For this pipeline I am not getting approve prompt despite having installed Input plugin. The pipeline is directly getting successful and also configured aws credentials and kubeconfig file for this lab properly. So what could be the reason that is checkout and approve stage is not executing

I’m assuming you’re doing the Kubernetes and Jenkins lab. Please always include a link to the lab; I’m going through the lab now, but am unsure I’m doing the same lab you’re talking about.

Assuming you’re referring to step 10 of this lab, it would appear that Jenkins install is screwed up very badly. Throwing this back to engineering for fixing.

Yes it the same lab
https://learn.kodekloud.com/user/courses/jenkins-project-building-ci-cd-pipeline-for-scalable-web-applications/module/1d8036bf-2606-4587-beef-925546e0c655/lesson/5f22840b-1725-481b-834d-2633965d98b0

Please let me know once it is fixed @rob_kodekloud

I am told this lab is fixed. I did not get through the whole lab (it’s pretty long) but I’m satisfied that Jenkins is now installed well enough that you should be able to install the AWS Credentials plugin in Step 10.