Hi @Tej-Singh-Rana@Inderpreet,
This task also failed for me today. Everything was working as expected and I think that I made everything as description asked for. Please take a look. Thanks.
Hello @aeldemerdash, @ralimardanov,
The validation script deploy a new file to verify the task. Make sure you copy all files not just the index.html.
Good luck!
before submitting I double checked it as you can see in screenshot of workspace a file test1.txt and in build History 3 successful build on same screenshot
This task failed for me with the same message as the others, even though everything seems to be in order. I just saw in this forum, that validation would check using a file other index.html. While i did not specifically check with any file other than index.html, i have configured all the build artefacts to be published on storage server so any other files too should have been published there. The build and SCM polling logs all indicate success. Not sure what went wrong. Can you please check this.
Thanks in advance.
@aeldemerdash it was correct, because I checked on storage and on all app servers, both files index.html and test1.txt files were there after 3 successfull jobs.
The workspace path on jenkins server was /var/jenkins_home/workspace/nautilus-app-deployment, so after workspace was only one directory that’s why */
would you know why publish over ssh to the storage server as natasha is not allowing to publish artifacts. I have setup everything correctly. Am I missing something
Do you need to setup the key when configuring server for publish over SSH in the Jenkins configure system. If yes then is it the private key of the root user on ststor01?
no, I meant to use normal cp after getting the files in Natasha’s home directory. The stars you made were correct and they will copy everything from build artifacts. The point is to leave “Remote Directory” blank which will put them by default in user’s home directory then you exec a command to copy them to /data.
Update: Managed to complete this task successfully now.
Observations: I was using the SCP plugin to push the build artifacts to ststor01:/data earlier. This plugin seems to be unstable as this time the plugin failed to upload the files in some iterations whereas it could in others. Could not investigate why as it seemed random. The SCP Plugin also gives security warnings and therefore it seems best to avoid it.
Instead this time, i used the SSH plugin to upload the files and it worked like a charm.
Thanks Admins @Inderpreet . Overall a good challenging task.
I got this task today and it worked perfectly for me.
I did the below steps which can be helpful if you are stuck anywhere:
Installed Gitea plugin
Added Gitea Server under “Configure System” and Manage Hooks as Yes
Webhook created in Gitea UI to hit the required job when commit happens
Create the required job
4.1 Give SCM of Gitea Repo
4.2 Make Build Triggers as Poll SCM which will get triggered from webhook
4.3 Build Script as below:
- git clone of the repo in /tmp directory
- copy all the files forcefully from cloned directory to /data folder
- clean the /tmp directory so that if job runs again it should work properly.