I closely paid attention not to commit such mistakes and also both the jobs ran perfectly with no errors when changes were pushed. I believe there is some validation problem . Please look into it ASAP as I already invested significant amount of time in this task.
I tested it end-to-end before submitting the task and everything was working fine… from commit and pushing the changes to the Gitea repo which triggers the first job on jenkins copying the file to /data, then downstream job is activated which is restarting the httpd service on all app servers.
I made sure the below command works fine to copy the index.html file to the /data folder which is used by the web server to load its content in the storage server…
cp ~/web/index.html /data/index.html
I’m sure it is overwriting the index.html file in the /data folder.
Is the validation testing testing for more files than just index.html???
My job also get failed but everything executed as per question. KIndly check on it.
Before that index.html file has “Welcome” and i have updated to “Welcome to the xFusionCorp Industries” and it worked. But still failed " :- Seems like Jenkins job is not configured correctly to deploy latest code from Git repository!"
This question has room for improvement.
I keep getting the same validation error message and I’m completing the task end to end as described… I even made sure it works properly by testing myself before clicking submit…
The error message needs to be more specific if the validation script is looking for something specific.
At least, the instructions on this task need to be more specific.
Kindly someone respond. As per question we did everything and also did testing. It worked fine but still status is failed. Kindly check and update is there any wrong in validation or any mistake in what we did.
In repo there is only one file index.html so moved that file and they asked to update the index.html file so that job should run automatically and should take the updated content of index. We did that and got the output.
For validation purposes they create their own file and do the process, so in order to complete the task plz see to it that you copy all the files in the repo not only the index.html .
I also got stuck on the same thing, then after searching I got to know this thing.
Thanks, Hope it helps.
Apologies for this issue, since we are not able to record your answers yet for such tasks that you perform from UI so its a bit difficult to review your answers.
Could you please record your answer using some screen recording software such as loom.com ? You can directly share your answer with me in DM and I will review the same to identify the issue with this task.
actually we recommend you all to record your answers for all Jenkins related scenarios this way and in case of failure you can share for review.
Note: avoid sharing your answers directly here on threads because we recommend others to try on their own rather than looking into the answers directly