Install Zuul on jenkins.
Change-Id: I732622576c318d82155cdd15c632a57070c2d850
This commit is contained in:
parent
61a14bcfd2
commit
02f20ce998
@ -243,6 +243,15 @@ node "jenkins.openstack.org" {
|
|||||||
'swift',
|
'swift',
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
class { 'zuul': }
|
||||||
|
file { "/etc/zuul/layout.yaml":
|
||||||
|
ensure => 'present',
|
||||||
|
source => 'puppet:///modules/openstack-ci-config/zuul/layout.yaml'
|
||||||
|
}
|
||||||
|
file { "/etc/zuul/logging.conf":
|
||||||
|
ensure => 'present',
|
||||||
|
source => 'puppet:///modules/openstack-ci-config/zuul/logging.conf'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
node "jenkins-dev.openstack.org" {
|
node "jenkins-dev.openstack.org" {
|
||||||
|
1
modules/openstack-ci-config/README
Normal file
1
modules/openstack-ci-config/README
Normal file
@ -0,0 +1 @@
|
|||||||
|
This file stores config files specific to the OpenStack CI project.
|
35
modules/openstack-ci-config/files/zuul/layout.yaml
Normal file
35
modules/openstack-ci-config/files/zuul/layout.yaml
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
queue:
|
||||||
|
- name: check
|
||||||
|
manager: IndependentQueueManager
|
||||||
|
trigger:
|
||||||
|
- event: patchset-uploaded
|
||||||
|
success:
|
||||||
|
verified: 1
|
||||||
|
failure:
|
||||||
|
verified: -1
|
||||||
|
- name: gate
|
||||||
|
manager: DependentQueueManager
|
||||||
|
trigger:
|
||||||
|
- event: comment-added
|
||||||
|
approval:
|
||||||
|
- approved: 1
|
||||||
|
success:
|
||||||
|
verified: 2
|
||||||
|
submit: true
|
||||||
|
failure:
|
||||||
|
verified: -2
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
- name: zuul-merge
|
||||||
|
failure-message: This change was unable to be automatically merged with the current state of the repository. Please rebase your change and upload a new patchset.
|
||||||
|
|
||||||
|
projects:
|
||||||
|
- name: openstack-ci/zuul
|
||||||
|
check:
|
||||||
|
- gate-zuul-merge:
|
||||||
|
- gate-zuul-pep8
|
||||||
|
- gate-zuul-pyflakes
|
||||||
|
gate:
|
||||||
|
- gate-zuul-merge:
|
||||||
|
- gate-zuul-pep8
|
||||||
|
- gate-zuul-pyflakes
|
1
modules/openstack-ci-config/files/zuul/logging.conf
Normal file
1
modules/openstack-ci-config/files/zuul/logging.conf
Normal file
@ -0,0 +1 @@
|
|||||||
|
#empty for now
|
28
modules/zuul/manifests/init.pp
Normal file
28
modules/zuul/manifests/init.pp
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
class zuul ()
|
||||||
|
{
|
||||||
|
# if we already have the repo the pull updates
|
||||||
|
|
||||||
|
exec { "update_zuul":
|
||||||
|
command => "git pull --ff-only",
|
||||||
|
cwd => "/opt/zuul",
|
||||||
|
path => "/bin:/usr/bin",
|
||||||
|
onlyif => "test -d /opt/zuul",
|
||||||
|
before => Exec["get_zuul"],
|
||||||
|
}
|
||||||
|
|
||||||
|
# otherwise get a new clone of it
|
||||||
|
|
||||||
|
exec { "get_zuul":
|
||||||
|
command => "git clone https://github.com/openstack-ci/zuul /opt/zuul",
|
||||||
|
path => "/bin:/usr/bin",
|
||||||
|
onlyif => "test ! -d /opt/zuul"
|
||||||
|
}
|
||||||
|
|
||||||
|
exec { "install_zuul":
|
||||||
|
command => "python setup.py install",
|
||||||
|
cwd => "/opt/zuul",
|
||||||
|
path => "/bin:/usr/bin",
|
||||||
|
subscribe => [ Exec["get_zuul"], Exec["update_zuul"] ],
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user