Jenkins Single Stage Pipeline

Hi guys, @rahul456 @kodekloud-support3

I ran into the same error too. Please see the screenshots. I had configured it to to pull the latest version on repo from the Gitea server, not the local repo on storage server. Not sure if the validation is checking only with the local repo on ststor01 without doing a push to origin.

Hi Lionel,

If so, it means validation is updating the files on ststor without doing a push to origin and then running the pipeline. It is not validating with the contents of Gitea repo. If some one else makes a change to Makes no sense but at least we know now what needs to be done to get this right. :slight_smile:

@andubodunrin, according to your submitted answer you havn’t made any changes in git. Or you might have made changes after submitting your answer.

hi @lionel, seems like you have already completed your task.

[email protected] .

hi @Sam @prash , sorry for the issue, this is marked pending for you, please give it an another try.

@mihsan, can you please share KKE details ?

Thanks for the response. Just to clarify, are we deploying from the recent changes( after cloning git repo) or from changes made directly in the folder directory.

@Sam, please deploy code after pushing your changes to git repository.

I was able to get the task successfully. @rahul456 Thanks.

1 Like

Hi @rahul456.
As seen on the second screenshot, the change was made on sarah’s profile and push to git.
Hence when i curl you see 2 different contents. I did not make any changes after submitting.
According @lionel, all he did was copy file from sarah’s profile to /data on ststor01 without any effects on the git repository.
I’m stuggling to understand your point.
Anyway the task is still marked failed for me as it has expired.
I look forward to the task resolution for multistage pipeline.
Thanks

@andubodunrin, marked pending for you, give it an another try.

@rahul456 Thanks, task is completed

@makadia.dhaval88 trust you are keeping safe , kindly assist with pipeline script for Jenkins multistage pipeline
Regards

Hi @andubodunrin,

Can you send the Task for review with the details?

Hi @rahul456 @Inderpreet I had also same issue. please review my screenshots. Can you please make it pending for me?






HI Rahul,

Thanks! Completed the task. guess i ran into the same issue in the Multi-Stage Pipeline too. Could you please re-enable that task too.

hi @fazalmahmood, as per question, you were supposed to deploy a code in apache’s default doc root, rather than sub directory.

@prash, please share ( Direct Message ) the solution video.

Unfortunately, I failed this task yesterday.

While I completed all the steps related to using a pipeline to pull the code from GIT and push it to a location of the Storage Server, I failed because of incomplete Slave Node setup. This is because I never set up the Agent on the Storage Server. I wish the question was worded a bit more clearer.

The part of the question reads that:

Add a slave node named Storage Server. It should be labeled as ststor01 and its remote root directory should be /home/natasha.

The way the question is worded, it’s sounds like the setup is required on the Jenkins UI only. It’s not clear whether the question expects us to complete the Agent setup in Storage Server. Also, what’s the purpose of this Slave Node? To use this in the pipeline like this?

pipeline {
  agent ststor01
  ...
  ...
}

Please improve the wording in the question to state the expectation clearly.