You could print the environment variable JENKINS_URL in a pre-build step. The JENKINS_URL contains at least the domain name of the master, which then may be parsed for further use.
Regards Eric Von: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] Im Auftrag von Laurent Malvert Gesendet: Dienstag, 14. Oktober 2014 12:58 An: jenkinsci-users@googlegroups.com Betreff: Re: Can we print Master name in slave machine >From Rajashekar's last message, I suppose he wants to see in the build >console/log on what node the current building is running, and also to which >master this particular node is connected. I don't quite understand why one would need this, but I suppose if you have a swarm of nodes that may connect to several servers it could be helpful. No idea on a way to do this though. On Tue, Oct 14, 2014 at 12:21 PM, <matthew.web...@diamond.ac.uk<mailto:matthew.web...@diamond.ac.uk>> wrote: When you say you want to print the “master name”, what exactly do you want to print? And where / when do you want to print it? I don’t understand what you are trying to achieve here – can you explain in more detail? From: Panikera Raj [mailto:panikera.raj...@gmail.com<mailto:panikera.raj...@gmail.com>] Sent: 14 October 2014 11:02 To: jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com> Subject: Re: Can we print Master name in slave machine Hi All, Any update on this... here is senario: Started by upstream project "Iphone7.4Auto<http://192.168.2.28:8080/job/Iphone7.4Auto/>" build number 1527<http://192.168.2.28:8080/job/Iphone7.4Auto/1527> originally caused by: Started by upstream project "Iphone7.10Auto<http://192.168.2.28:8080/job/Iphone7.10Auto/>" build number 212<http://192.168.2.28:8080/job/Iphone7.10Auto/212> originally caused by: I want print master name Regards, Rajashekar P On Fri, Oct 10, 2014 at 12:31 PM, Panikera Raj <panikera.raj...@gmail.com<mailto:panikera.raj...@gmail.com>> wrote: Hi All, Is there a way, where I can print Master name in slave machine. Since Two master projects will trigger one slave project. Please help me on this. Regards, Rajashekar P -- 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 jenkinsci-users+unsubscr...@googlegroups.com<mailto:jenkinsci-users+unsubscr...@googlegroups.com>. For more options, visit https://groups.google.com/d/optout. -- Laurent Malvert -- 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 jenkinsci-users+unsubscr...@googlegroups.com<mailto:jenkinsci-users+unsubscr...@googlegroups.com>. 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 jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.