switched to local funtion to run command
Merge branch 'master' of github.com:rcbops/jenkins-build