Day 80: Jenkins Chained Builds

I am currently doing Day 80: Jenkins Chained Builds

I go the error:

  • Seems like webpage is not loading properly on App Server 1, either apache is down there or latest content has not been deployed.

I have checked all app server and page is loading. Is there any specific content the test is looking for?

Hi @kk_user1

Thank you for your detailed feedback. I’ve checked on my side, and it’s working fine. You can see the screenshot below. Could you please share the details of your Jenkins jobs?

I am saying that if you have completed the task then can you share the tutorial video or document with us so that we can identify where we are stuck.

Hi @Rajat-1998

Thanks for your feedback. KKE is designed to give real experience, and there are many ways to complete the tasks. That’s why KKE tasks don’t have a solution tab like KodeKloud Labs.

If a student or user gets stuck, they can share their approach and information, and the community can help with ideas. So please try it on your own, and if it doesn’t work, we can discuss and learn together.

If you want to practice labs with solutions, I suggest visiting: Jenkins Course | KodeKloud


Hello i have the same problem everything is working both jobs are successfull no errors. app button works .For the first job i use this cmd :

Deploy to Storage Server via SSH

sshpass -p ‘Bl@kW’ ssh -o StrictHostKeyChecking=no [email protected] << ‘EOF’
cd /var/www/html
sudo git fetch origin
sudo git reset --hard origin/master
sudo chown -R natasha:natasha /var/www/html
sudo chmod -R 755 /var/www/html
echo “Deployment successful!”
ls -la /var/www/html/
EOF

for the second :

#!/bin/bash

App Server 1

sshpass -p ‘Ir0nM@n’ ssh -o StrictHostKeyChecking=no [email protected] << ‘EOF’
echo ‘Ir0nM@n’ | sudo -S systemctl restart httpd
echo ‘Ir0nM@n’ | sudo -S systemctl status httpd --no-pager -l
EOF

App Server 2

sshpass -p ‘Am3ric@’ ssh -o StrictHostKeyChecking=no [email protected] << ‘EOF’
echo ‘Am3ric@’ | sudo -S systemctl restart httpd
echo ‘Am3ric@’ | sudo -S systemctl status httpd --no-pager -l
EOF

App Server 3

sshpass -p ‘BigGr33n’ ssh -o StrictHostKeyChecking=no [email protected] << ‘EOF’
echo ‘BigGr33n’ | sudo -S systemctl restart httpd
echo ‘BigGr33n’ | sudo -S systemctl status httpd --no-pager -l
EOF

Hi @Martoni

What’s the result when you try to curl the application? For example: curl stapp02:8080.

Hi .
I solved the problem. tank you for the atention