Jenkins - Copy build log from master to shared drive

Can someone direct me here? I have a simple job configured in Jenkins under WINDOWS (the wizard and all subordinates working on windows), and the work must be performed on a specific slave. When you build the task, the build log (log.log) is stored in "% JENKINS_HOME% \ jobs \\ builds \% BUILD_NUMBER% \" on the main server.

I have a Jenkins workspace (which is required when adding a slave node) installed on the slave for this job - where nothing is saved when the job starts.

In this scenario, I would like to copy the assembly log (the log.log file available on the host computer) to the shared drive. Please advise me how to do this. I tried several Copy to Work, Copy Artifact Plugin and ArtifactDeployer plugins ... I couldn’t get them to work to satisfy what I needed.

+4
source share
1 answer

Use the second build action with the batch download option. Put the copy command here to copy the log to another location.

0
source

All Articles