Try and pass through with export

This commit is contained in:
James Shubin
2016-01-29 11:10:23 -05:00
parent 8f0d3e3abe
commit 9e08de0bcf

View File

@@ -59,7 +59,7 @@ if r != 0:
# the second ssh call will run with the omv /etc/profile.d/ script loaded # the second ssh call will run with the omv /etc/profile.d/ script loaded
git = "git clone --recursive %s %s && cd %s && git checkout %s" % (git_url, folder, folder, branch) git = "git clone --recursive %s %s && cd %s && git checkout %s" % (git_url, folder, folder, branch)
cmd = "%s '%s && %s'" % (ssh, git, run) # run cmd = "%s 'export JENKINS_URL=%s && %s && %s'" % (ssh, os.getenv('JENKINS_URL', ''), git, run) # run
print cmd print cmd
r = subprocess.call(cmd, shell=True) r = subprocess.call(cmd, shell=True)
if r != 0: if r != 0: