Updated the commands to work shell-less.

This commit is contained in:
Monty Taylor 2011-07-16 13:31:03 -04:00
parent 9a259df7f5
commit ec2feb7671
1 changed files with 2 additions and 2 deletions

View File

@ -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",