It goes in Jenkins logs. Just use println or echo without the System.out part.
HTH Le 17 juin 2015 4:44 PM, "Arek Skalski" <[email protected]> a écrit : > I have a sample script: > > class LogTest { > def name > tesst(aName) { > name = aName > } > > def info(message) { > System.out.println("$name $message") > } > > } > > node ("myname") { > def tt = new LogTest("name") > tt.info("message") > } > > My output: > > Started by user anonymous <http://navber-jenifer.ttg.global:8080/user/null> > Running: Allocate node : Start > Running on myname in /location/Groovy_Test > Running: Allocate node : Body : Start > Running: Allocate node : Body : End > Running: Allocate node : End > Running: End of Workflow > Finished: SUCCESS > > > I am wondering how can I make it to see output of my info message inside > jenkins console. > > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/28ebaabb-f366-4fb6-ad82-a2ff43d39751%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/28ebaabb-f366-4fb6-ad82-a2ff43d39751%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS7qk3E4_67tVsBgcqgbrZkEbueSzPhHDkiB8fne8qdNEQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
