jenkins - calculate remote fs root from master hostname -


i have 2 jenkins masters - call them "master1" , "master2" - , remote node, call "node1". want keep node configuration "node1" same in master1 , master2. - dynamically calculate remote fs root property of node1 different depending on whether jenkins slave process started master1 or master2. so, in node configuration, here:

remote fs root = /home/jenkins/<????> 

is there can enter ???? result in different absolute workspace path slaves started on master1 vs master2? (note: key want ???? same on masters; want avoid hard-coding in unique values "master1" or "master2".)


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -