I wonder are there features for jenkins to capture the result /data in a node and persist it in master.
I come up with the scenario that I need to check some folders in two machines to see whether they have same no of files & same size.
If hudson can save some result like “ls -ltR” in master , then I can gather at both node the results in two jobs then compare.
Are there any elegant solution to this simple problem?
currently I can connect two machines to each other via SSH and solve the problem, while this connection is not always available.
(With SSH I believe the best way is to use rsync -an /path/to/ hostB:/path/to/)
Simple problem, only slightly elegant solution :
Write a simple job
listdirwhich doesDIR > C:\logs\list1.txt .. listGo to
Post-build ActionsAdd
Archive the artifactsfor example from above:C:\logs\*.*Now run a build and go to
http://jenkinsservername:8080/job/listdir/You’ll see the
list1.txtwhich you can click on, and see the contents.I have given a Windows example, you can of course replace
DIRwithls -ltr