Hi, I’m unable to complete the Jenkins Scheduled Jobs task (KKE - Jenkins Level 2). I’ve configured everything correctly — the build was successful and the log files were copied to the storage server — but the task still shows as incomplete. Please help me identify what I might be missing.
Able to complete the task with below steps
Below commands to be run from command line
To copy logs from App Server 2 to Storage Server, Jenkins needs SSH access
Generate a new SSH key pair
jenkins@jenkins:~$ ssh-keygen -t rsa -b 4096 -N “” -f ~/.ssh/id_rsa
Your identification has been saved in /var/lib/jenkins/.ssh/id_rsa
Your public key has been saved in /var/lib/jenkins/.ssh/id_rsa.pub
Now, copy the public key to both severs (stapp02, ststor01)
jenkins@jenkins:~$ ssh-copy-id -i ~/.ssh/id_rsa.pub steve@stapp02
jenkins@jenkins:~$ ssh-copy-id -i ~/.ssh/id_rsa.pub natasha@ststor01
Once we copied the public key, Next time SSH will not ask for password
Below instructions to be run from Jenkins UI
Log in to Jenkins UI as user “admin”
Create a new job named “copy-logs”
Jenkins Dashboard Create a job Keep Job name as “copy-logs” Select Freestyle project click Ok
Add Job Trigger
Now, go to triggers section select check box “Build Periodically” Mention schedule to run every 5 mins
Configure Build Step
Now, Add Build step Execute Shell Add below commands and then Click Save
Click on Save
Now, click “Build now” to verify the functionality
Verify log (Console output)
Task Completed!!
It seems no one has responded for this issue, pls check and let us know what is the expected approach as I am also seeing same error.
This worked!!! @amar.nece
Thank you! The build was successful, however, the kodekloud lab did not ‘verify’ it successfully. Still stuck. I tried this too https://github.com/imShakil/100-Days-Of-DevOps-Challenge-KodeKloud/blob/main/days/073.md
but no luck ! ![]()
This worked!!! @amar.nece
Thank you!
As per my understanding, we generated new SSH key pair on jenkins and copied them to for app server 2 and storage server so that it doesn;t asks for password while while building? Please correct if i’m wrong!

