timja / jenkins-gh-issues-poc-06-18

0 stars 0 forks source link

[JENKINS-27160] display the slave name in the main job's console output #5922

Open timja opened 9 years ago

timja commented 9 years ago

I have a Jenkin's master with multiple slave setup.
I would like to have the main job's console output to include the slave name where jobs are executed.

e.g. Currently in Jenkins ver. 1.596.1 the main output of my Multi-configuration project look like something below:

====================
Started by an SCM change
Building on master in workspace /var/lib/jenkins/jobs/test_el6_gcc4.4_nightly/workspace
...
No emails were triggered.
Triggering test_el6_gcc4.4_nightly » jdk6,el6
Triggering test_el6_gcc4.4_nightly » jdk8,el6
Triggering test_el6_gcc4.4_nightly » jdk7,el6
Triggering test_el6_gcc4.4_nightly » openjdk7,el6
Triggering test_el6_gcc4.4_nightly » openjdk6,el6
test_el6_gcc4.4_nightly » jdk8,el6 completed with result SUCCESS
test_el6_gcc4.4_nightly » jdk7,el6 completed with result SUCCESS
test_el6_gcc4.4_nightly » openjdk7,el6 completed with result SUCCESS
test_el6_gcc4.4_nightly » openjdk6,el6 completed with result SUCCESS
...
Finished: SUCCESS
====================

I would like it to be something like this
...
Triggering test_el6_gcc4.4_nightly » openjdk6,el6
test_el6_gcc4.4_nightly » jdk8,el6 completed on slaveMachine1 with result SUCCESS
test_el6_gcc4.4_nightly » jdk7,el6 completed on slaveMachine2 with result SUCCESS
test_el6_gcc4.4_nightly » openjdk7,el6 completed on slaveMachine3 with result SUCCESS
test_el6_gcc4.4_nightly » openjdk6,el6 completed on slaveMachine1 with result SUCCESS
...

e.g. on the success or failure result line, it should include the slave name


Originally reported by neon, imported from: display the slave name in the main job's console output
  • status: Reopened
  • priority: Minor
  • resolution: Unresolved
  • imported: 2022/01/10
timja commented 6 years ago

oleg_nenashev:

"Building on master in " in the beginning of the log IIUC the request correctly.

timja commented 6 years ago

oleg_nenashev:

Please reopen if I misunderstood it

timja commented 6 years ago

neon:

test_el6_gcc4.4_nightly » jdk8,el6 completed with result SUCCESS

should be changed (improved) to

test_el6_gcc4.4_nightly » jdk8,el6 completed on slaveMachineName with result SUCCESS