Jenkins multistage pipeline

i have an issue with this task

. Even though i build the pipeline and it ran successfully

I was also able to access the site

and my node ran successfully

can anyone help?

Since we have a number of Jenkins courses, to help us find your lab, please include a link to the lab; one of us will then be able to help you with it.

this is the link i have on my url https://engineer.kodekloud.com/task?id=680b510e1f1bf1cf5ff4834c

That’s actually NOT the link I need – that link won’t work to get at the lab. For a KKE lab like that I need either:

  • If it’s a “100 Days of X”, I need the “Day of” number
  • OR: the full name of the lab, so I can look it up.

This will allow me to locate the lab and try it out.

It turned out I missed the info in one of the images (it’s always better to put that in text to make sure it’s not easy to miss). Day 81 looks to be the lab you’re doing. So you may find this guide useful in figuring out this lab.

i HAVE CARRIED OUT THE SAME PROCESS OVER 20TIMES. THE DIFFERENCE WITH MY LAB IS THAT I HAVE TO CREATE A NODE IN MY JENKINS AND THE JOB PASSES BUT I STILL GET “BUILD FAILED: FAILURE” AND THE PLATFORM DOES NOT EXPLAIN WHAT THAT MEANS. ALL MY CHECKS VERIFY I HAVE COMPLETED THE CHANGE OF THE INDEX.HTML FILE. i CAN NOT MOVE PASS AND I HAVE BEEN ON THIS LAB FOR TOO LONG

I’m not sure how you’re doing the lab, so I’m not sure what you’re doing wrong. Key parts of this lab:

  • Make sure your new node is set up to run as user “sarah”

  • Make sure the lab runs correctly when you try to build it.

  • Make sure your script looks something like this:

    
    
    pipeline {
      agent {
          label 'stapp01'
      }
    
      stages {
          
          stage ('Deploy') {
              steps {
                  script {
                      sh "cd /var/www/html && git pull origin master"
                  }
              }
          }
          
          stage ('Test') {
              steps {
                  script {
                      sh "curl -f http://stlb01:8091 "
                  }
              }
          }
      }
    }