Fixed a home dir/permissions problem.

This commit is contained in:
Monty Taylor 2011-07-16 16:46:58 -04:00
parent 5f291e445b
commit 9c1616b659
1 changed files with 6 additions and 6 deletions

View File

@ -5,18 +5,18 @@ define slavecirepo($ensure = present) {
exec { "Clone openstack-ci git repo":
path => "/bin:/usr/bin",
environment => "HOME=/home/jenkins",
command => "git clone git://github.com/openstack/openstack-ci.git /home/jenkins/openstack-ci",
user => "jenkins",
group => "jenkins",
command => "sudo -H -u jenkins -i git clone git://github.com/openstack/openstack-ci.git /home/jenkins/openstack-ci",
user => "root",
group => "root",
unless => "$repo_there",
logoutput => on_failure,
}
exec { "Update openstack-ci git repo":
path => "/bin:/usr/bin",
environment => "HOME=/home/jenkins",
command => "bash -c 'cd /home/jenkins/openstack-ci && git pull'",
user => "jenkins",
group => "jenkins",
command => "sudo -H -u jenkins -i bash -c 'cd /home/jenkins/openstack-ci && git pull'",
user => "root",
group => "root",
onlyif => "$repo_there",
logoutput => on_failure,
}