-3
  1. 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.
  2. How configure jenkins to save java output (System.output) to some txt file, or send another server ftp. (in Jenkins) without usinf filereadet etc
dev.kode
  • 1
  • 3
  • 3
    Possible 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
  • 1
    What 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 Answers1

0

i added on Jenkins in maven configuration exec:java -Dexec.mainClass=main, and it works thanks

dev.kode
  • 1
  • 3