This is a fork of project-config repository for use as a starting point to setup our 3rd party CI account. It is expected that you fork this repository or otherwise copy it to your own repository. Any changes to this version are expected to remain within the scope of an 'example' to help others get started. Refer to openstack-infra/project-config for a more complete production configuration.
The project-config repository is intended to contain custom configurations needed by each CI system.
The zuul layout configuration is located in zuul/layout.yaml
. You can find
the full configuration details in the Zuul manual.
-
Change 'myvendor' in the 'recheck' command to your CI's name.
-
Configure the e-mail addresses for merge-failures and job notification.
-
By default, the project zuul triggers on is
openstack-dev/ci-sandbox
. After testing your CI system update this section to include other projects. You are encouraged to use the 'silent' pipeline until your jobs are stable.
The nodepool configuration is located in nodepool/nodepool.yaml
. You can
find the full configuration instructions in the Nodepool manual.
There are a few configuration that need to be updated.
-
There are some user names and passwords that need to be configured.
-
Select a 'random time' for your nodepool images to be built in the
image-update
property. By having 3rd party systems use different times will help reduce the spike load on OpenStack's Git servers. -
Setup an intial set of nodepool scripts and elements. Start by cloning OpenStack's project-config and copying the entire contents of that repo's
nodepool/elements
to your repo'snodepool/elements
. Optionally do the same for thenodepool/scripts
folder. You may have to change these elements to work in your environment. If so, see this README for help. -
Update the nodepool/nodepool.yaml
diskimages
configuration to match the elements you included in the previous step. If you included everything, the defaults provide a good starting point. Otherwise, adjust them as needed as explained in the nodepool manual.
Adjust the jenkins jobs in jenkins/jobs/
to your needs. You can find the full configuration details in the
Jenkins Job Builder manual
- Change the value of the
<your-log-server>
in project-config-example/jenkins/jobs/macros-common.yaml to the host you will publish job artifacts to. This is also known as the Log server. You can set one up using openstackci::logserver puppet class
Prerequisites: The following packages need to be installed for the zuul
tox environment tests to pass:
sudo apt-get install libxml2-dev libxslt1-dev python-dev build-essential
- Run
tox
to run some basic syntax checks to validate the syntax of your configuration files.
This repository is based on work created from the following sources: