How to print the Servername in beginning of each line using shell script on Jenkins Console Output. I am getting the Servernames as parameter like sd009.domain.com, sw009.domain.com from Active Choices parameter plugin
Actual Output:
ssh -o stricthostkeychecking = no domain@server 'ls -lrt'
ssh -o stricthostkeychecking = no domain@server 'pwd'
ssh -o stricthostkeychecking = no domain@server 'hostname'
PS_EXE="/cygdrive/windows/powershell.exe"
My expected output:
sd09.domain.com ssh -o stricthostkeychecking = no domain@server 'ls -lrt'
sd09.domain.com ssh -o stricthostkeychecking = no domain@server 'pwd'
sd09.domain.com ssh -o stricthostkeychecking = no domain@server 'hostname'
sd09.domain.com PS_EXE="/cygdrive/windows/powershell.exe"
See i need to show my selected servername in all line of output like the above using shell script code in execute shell block. Please help me in achieving this at the earliest.