Maybe something like this?
node ('remote-server') {
sh '''
. /home/cmr/myenv'
echo "My Variables: ${env.FOO} ${env.BAR}"
'''
}
--
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/86f0cdd9-5705-4d12-8229-210ce6614aee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.