I am using jenkins for build process. I am running some scripts on remote server using jenkins server. It's fine but remote host generates some html file. I want to copy that file back to jenkins server. Is it possible to do it from jenkins server?
Asked
Active
Viewed 8,211 times
2 Answers
2
If you want to archive it permanently, you can use the Archive Artifacts
option in the Post-build
step in Jenkins. In the case of builds that happen on slaves, Archive Artifacts
copies the artifacts back to the Jenkins server for archiving and reuse.
If you want to then use this in a subsequent build, you can use the Copy Artifacts
step to introduce an artifact from another build into your subsequent process on any Jenkins slave.
We use this to move production builds into our test environment after packaging and it works great.

gaige
- 17,263
- 6
- 57
- 68
2
Copy to slave plugin also copies files back from slaves to the master. Might be worth the look.

Aliaksandr Belik
- 12,725
- 6
- 64
- 90

NotAgain
- 1,927
- 3
- 26
- 42