Hi,
I’m stuck wih this one as I don’t understand the error I’m receiving when checking this task.
I think I have successfully answer the requirements :
- create the slave node (sarah ssh credential, update jdk version)
- install the missing jenkins plugins
- create a pipeline actually working under specifications (with BRANCH parameter added)
pipeline {
agent { label 'stapp01' }
stages {
stage('Deploy') {
steps {
dir('/var/www/html') {
git url: 'https://3000-port-xj2roisszsserjzu.labs.kodekloud.com/sarah/web_app.git', branch: "$BRANCH"
}
}
}
}
}
When testing with parameter ‘master’ then ‘feature’ then again ‘master’ I can confirm that the branch under /var/www/html on stapp01 is changing and that the website is responding with the correct html.
But … “Validation file not found on App Server”