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":
|
||||
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,
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user