As far as I know you don't need to do anything since the pipeline does it 
automatically:

For instance, the below pipeline will be shown as the attached screenshot

node('docker') {
    sh 'docker --version'
    sh 'docker info'
}
<https://lh3.googleusercontent.com/-bIUSEguDBiQ/WiWczlv4N6I/AAAAAAAAKsI/f3oQ7h_YqMIpr_AyPtZpBWl1eZ-ZXLUsgCLcBGAs/s1600/Screen%2BShot%2B2017-12-04%2Bat%2B19.05.08.png>










Is that what you meant? 

Cheers 

-- 
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/f2bd4fda-c68e-4ebc-8ba6-cfed991f7b88%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to