Fixed a home dir/permissions problem.
This commit is contained in:
parent
5f291e445b
commit
9c1616b659
|
@ -5,18 +5,18 @@ define slavecirepo($ensure = present) {
|
||||||
exec { "Clone openstack-ci git repo":
|
exec { "Clone openstack-ci git repo":
|
||||||
path => "/bin:/usr/bin",
|
path => "/bin:/usr/bin",
|
||||||
environment => "HOME=/home/jenkins",
|
environment => "HOME=/home/jenkins",
|
||||||
command => "git clone git://github.com/openstack/openstack-ci.git /home/jenkins/openstack-ci",
|
command => "sudo -H -u jenkins -i git clone git://github.com/openstack/openstack-ci.git /home/jenkins/openstack-ci",
|
||||||
user => "jenkins",
|
user => "root",
|
||||||
group => "jenkins",
|
group => "root",
|
||||||
unless => "$repo_there",
|
unless => "$repo_there",
|
||||||
logoutput => on_failure,
|
logoutput => on_failure,
|
||||||
}
|
}
|
||||||
exec { "Update openstack-ci git repo":
|
exec { "Update openstack-ci git repo":
|
||||||
path => "/bin:/usr/bin",
|
path => "/bin:/usr/bin",
|
||||||
environment => "HOME=/home/jenkins",
|
environment => "HOME=/home/jenkins",
|
||||||
command => "bash -c 'cd /home/jenkins/openstack-ci && git pull'",
|
command => "sudo -H -u jenkins -i bash -c 'cd /home/jenkins/openstack-ci && git pull'",
|
||||||
user => "jenkins",
|
user => "root",
|
||||||
group => "jenkins",
|
group => "root",
|
||||||
onlyif => "$repo_there",
|
onlyif => "$repo_there",
|
||||||
logoutput => on_failure,
|
logoutput => on_failure,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue