I'd look at using the publish over SSH plugin inside the workflow code.
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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/88d634ba-e724-489a-96b4-fc65b59c1c0b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
We are using a workflow in Jenkinsand we need to run a script with particular user previlages, so we should make a ssh connection to server and then run that script