From ec2feb767177e95db0cd522857e121f251b25c10 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Sat, 16 Jul 2011 13:31:03 -0400 Subject: [PATCH] Updated the commands to work shell-less. --- modules/jenkins_slave/manifests/slavecirepo.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/jenkins_slave/manifests/slavecirepo.pp b/modules/jenkins_slave/manifests/slavecirepo.pp index ded56b8a2a..e664c6a943 100644 --- a/modules/jenkins_slave/manifests/slavecirepo.pp +++ b/modules/jenkins_slave/manifests/slavecirepo.pp @@ -5,7 +5,7 @@ define slavecirepo($ensure = present) { exec { "Clone openstack-ci git repo": path => "/bin:/usr/bin", environment => "HOME=/home/jenkins", - command => "cd /home/jenkins && git clone git://github.com/openstack/openstack-ci.git", + command => "git clone git://github.com/openstack/openstack-ci.git /home/jenkins/openstack-ci", user => "jenkins", group => "jenkins", unless => "$repo_there", @@ -14,7 +14,7 @@ define slavecirepo($ensure = present) { exec { "Update openstack-ci git repo": path => "/bin:/usr/bin", environment => "HOME=/home/jenkins", - command => "cd /home/jenkins/openstack-ci && git pull", + command => "bash -c 'cd /home/jenkins/openstack-ci && git pull'", user => "jenkins", group => "jenkins", onlyif => "$repo_there",