Jenkins chained Builds

i attempted the question multiple times. Both the jobs build successfully and the app launches as well.
Could someone please assist here. I am stuck on that LAB.

Could you please give me a link to the lab in question? Not clear which lab you are talking about.

it is jenkins level 4 task 2. I can send the video recording as well

Hi,

Can you please let me know if you were able to finish this task. i’m stuck in this task as well. my services are running but the task is getting failed with this error.

Started by upstream project “nautilus-app-deployment” build number 4
originally caused by:
Started from command line by admin
Running as SYSTEM
Building in workspace /var/lib/jenkins/workspace/manage-services
[SSH] script:

echo Ir0nM@n | sudo -S systemctl restart httpd && systemctl status httpd

[SSH] executing…
[sudo] password for tony: ● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; preset: disabled)
Active: active (running) since Tue 2025-04-29 05:29:22 UTC; 44ms ago
Docs: man:httpd.service(8)
Main PID: 5228 (httpd)
Status: “Started, listening on: port 8080”
Tasks: 5 (limit: 1340692)
Memory: 6.9M
CGroup: /docker/abdd96d73169d255303957e19132fca70df56e68d806ea5c601da0341bd263ad/system.slice/httpd.service
├─5228 /usr/sbin/httpd -DFOREGROUND
├─5235 /usr/sbin/httpd -DFOREGROUND
├─5236 /usr/sbin/httpd -DFOREGROUND
├─5237 /usr/sbin/httpd -DFOREGROUND
└─5238 /usr/sbin/httpd -DFOREGROUND

Apr 29 05:29:22 stapp01.stratos.xfusioncorp.com systemd[1]: httpd.service: Got notification message from PID 5228 (RELOADING=1, STATUS=Reading configuration…)
Apr 29 05:29:22 stapp01.stratos.xfusioncorp.com httpd[5228]: AH00558: httpd: Could not reliably determine the server’s fully qualified domain name, using stapp01.stratos.xfusioncorp.com. Set the ‘ServerName’ directive globally to suppress this message
Apr 29 05:29:22 stapp01.stratos.xfusioncorp.com systemd[1]: httpd.service: Got notification message from PID 5228 (RELOADING=1, STATUS=Reading configuration…)
Apr 29 05:29:22 stapp01.stratos.xfusioncorp.com httpd[5228]: Server configured, listening on: port 8080
Apr 29 05:29:22 stapp01.stratos.xfusioncorp.com systemd[1]: httpd.service: Got notification message from PID 5228 (READY=1, STATUS=Configuration loaded.)
Apr 29 05:29:22 stapp01.stratos.xfusioncorp.com systemd[1]: httpd.service: Changed start → running
Apr 29 05:29:22 stapp01.stratos.xfusioncorp.com systemd[1]: httpd.service: Job 732 httpd.service/start finished, result=done
Apr 29 05:29:22 stapp01.stratos.xfusioncorp.com systemd[1]: Started The Apache HTTP Server.
Apr 29 05:29:22 stapp01.stratos.xfusioncorp.com systemd[1]: httpd.service: Failed to send unit change signal for httpd.service: Connection reset by peer
Apr 29 05:29:22 stapp01.stratos.xfusioncorp.com systemd[1]: httpd.service: Got notification message from PID 5228 (READY=1, STATUS=Started, listening on: port 8080, MAINPID=5228)

[SSH] completed
[SSH] exit-status: 0

[SSH] script:

echo Am3ric@ | sudo -S systemctl restart httpd && systemctl status httpd

[SSH] executing…
[sudo] password for steve: ● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; preset: disabled)
Active: active (running) since Tue 2025-04-29 05:29:24 UTC; 43ms ago
Docs: man:httpd.service(8)
Main PID: 4327 (httpd)
Status: “Started, listening on: port 8080”
Tasks: 5 (limit: 1340692)
Memory: 7.6M
CGroup: /docker/39446a1d8d0d515c03f54a806ee82c7ebc6e787dc63df8450db95274dedeefa7/system.slice/httpd.service
├─4327 /usr/sbin/httpd -DFOREGROUND
├─4335 /usr/sbin/httpd -DFOREGROUND
├─4336 /usr/sbin/httpd -DFOREGROUND
├─4337 /usr/sbin/httpd -DFOREGROUND
└─4338 /usr/sbin/httpd -DFOREGROUND

Apr 29 05:29:24 stapp02.stratos.xfusioncorp.com systemd[1]: httpd.service: Got notification message from PID 4327 (RELOADING=1, STATUS=Reading configuration…)
Apr 29 05:29:24 stapp02.stratos.xfusioncorp.com httpd[4327]: AH00558: httpd: Could not reliably determine the server’s fully qualified domain name, using stapp02.stratos.xfusioncorp.com. Set the ‘ServerName’ directive globally to suppress this message
Apr 29 05:29:24 stapp02.stratos.xfusioncorp.com systemd[1]: httpd.service: Got notification message from PID 4327 (RELOADING=1, STATUS=Reading configuration…)
Apr 29 05:29:24 stapp02.stratos.xfusioncorp.com httpd[4327]: Server configured, listening on: port 8080
Apr 29 05:29:24 stapp02.stratos.xfusioncorp.com systemd[1]: httpd.service: Got notification message from PID 4327 (READY=1, STATUS=Configuration loaded.)
Apr 29 05:29:24 stapp02.stratos.xfusioncorp.com systemd[1]: httpd.service: Changed start → running
Apr 29 05:29:24 stapp02.stratos.xfusioncorp.com systemd[1]: httpd.service: Job 600 httpd.service/start finished, result=done
Apr 29 05:29:24 stapp02.stratos.xfusioncorp.com systemd[1]: Started The Apache HTTP Server.
Apr 29 05:29:24 stapp02.stratos.xfusioncorp.com systemd[1]: httpd.service: Failed to send unit change signal for httpd.service: Connection reset by peer
Apr 29 05:29:24 stapp02.stratos.xfusioncorp.com systemd[1]: httpd.service: Got notification message from PID 4327 (READY=1, STATUS=Started, listening on: port 8080, MAINPID=4327)

[SSH] completed
[SSH] exit-status: 0

[SSH] script:

echo BigGr33n | sudo -S systemctl restart httpd && systemctl status httpd

[SSH] executing…
[sudo] password for banner: ● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; preset: disabled)
Active: active (running) since Tue 2025-04-29 05:29:26 UTC; 41ms ago
Docs: man:httpd.service(8)
Main PID: 4244 (httpd)
Status: “Started, listening on: port 8080”
Tasks: 5 (limit: 1340692)
Memory: 7.4M
CGroup: /docker/ec3d206f904587a1b89bc196ce87d73710d25ff20c3bdf0c5b460f9439cd606f/system.slice/httpd.service
├─4244 /usr/sbin/httpd -DFOREGROUND
├─4251 /usr/sbin/httpd -DFOREGROUND
├─4252 /usr/sbin/httpd -DFOREGROUND
├─4253 /usr/sbin/httpd -DFOREGROUND
└─4254 /usr/sbin/httpd -DFOREGROUND

Apr 29 05:29:26 stapp03.stratos.xfusioncorp.com systemd[1]: httpd.service: Got notification message from PID 4244 (RELOADING=1, STATUS=Reading configuration…)
Apr 29 05:29:26 stapp03.stratos.xfusioncorp.com httpd[4244]: AH00558: httpd: Could not reliably determine the server’s fully qualified domain name, using stapp03.stratos.xfusioncorp.com. Set the ‘ServerName’ directive globally to suppress this message
Apr 29 05:29:26 stapp03.stratos.xfusioncorp.com systemd[1]: httpd.service: Got notification message from PID 4244 (RELOADING=1, STATUS=Reading configuration…)
Apr 29 05:29:26 stapp03.stratos.xfusioncorp.com httpd[4244]: Server configured, listening on: port 8080
Apr 29 05:29:26 stapp03.stratos.xfusioncorp.com systemd[1]: httpd.service: Got notification message from PID 4244 (READY=1, STATUS=Configuration loaded.)
Apr 29 05:29:26 stapp03.stratos.xfusioncorp.com systemd[1]: httpd.service: Changed start → running
Apr 29 05:29:26 stapp03.stratos.xfusioncorp.com systemd[1]: httpd.service: Job 560 httpd.service/start finished, result=done
Apr 29 05:29:26 stapp03.stratos.xfusioncorp.com systemd[1]: Started The Apache HTTP Server.
Apr 29 05:29:26 stapp03.stratos.xfusioncorp.com systemd[1]: httpd.service: Failed to send unit change signal for httpd.service: Connection reset by peer
Apr 29 05:29:26 stapp03.stratos.xfusioncorp.com systemd[1]: httpd.service: Got notification message from PID 4244 (READY=1, STATUS=Started, listening on: port 8080, MAINPID=4244)

[SSH] completed
[SSH] exit-status: 0

Finished: SUCCESS

Hi @Venkata_Pavan,

Thanks for your detail feedback.

I’ve just checked it and it’s worked properly from my end. You can see the screenshot below. Could you please share your detail jenkins jobs?