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.
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.
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.
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
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.