- I have java program in jenkins, program get some data and save to txt file. When i build in jenkins this project in txt file ( in directory on jenkins) is nothing changes.
- How configure jenkins to save java output (System.output) to some txt file, or send another server ftp. (in Jenkins) without usinf filereadet etc
Asked
Active
Viewed 524 times
-3

dev.kode
- 1
- 3
-
3Possible duplicate of [How do I create a file and write to it in Java?](https://stackoverflow.com/questions/2885173/how-do-i-create-a-file-and-write-to-it-in-java) – Mohammad Azim Apr 19 '18 at 09:09
-
1What are you asking is not clear. Please make sure you provide all details and with correct grammar... – SV Madhava Reddy Apr 19 '18 at 09:28
-
You cannot, Jenkins is not able to run your java application :D Only groovy pipelines, probably not in default, but if some plugin is installed. – xxxvodnikxxx Apr 19 '18 at 10:04
1 Answers
0
i added on Jenkins in maven configuration exec:java -Dexec.mainClass=main, and it works thanks

dev.kode
- 1
- 3