Add pipeline to build Gerrit

This adds a pipeline job to build Gerrit. It does the same as the
existing Gerrit-{branch} job. Since a workflow job cannot be replaced by
a pipeline job, the new job cannot have the same name as the old job.

Since the update has to be done in two steps anyway (if the old name
should stay the same), the old job was kept in place for now to run in
parallel and will be removed in a separate change.

Change-Id: I0a00649b711fcbfcd6805c93f08eb01871b021b7
1 file changed
tree: 63a87f3eee943e6c13f56d1bdba69737121a9573
  1. jenkins/
  2. jenkins-docker/
  3. worker/
  4. .gitignore
  5. README.md
  6. yamllint-config.yaml
README.md

Gerrit CI scripts

Providing jobs

This project uses Jenkins Jobs Builder [1] to generate jobs from yaml descriptor files.

To add new jobs reuse existing templates, defaults etc. as much as possible. E.g. adding a job to build an additional branch of a project may be as easy as adding the name of the branch to an existing project.

To ensure well readable yaml-files, use yamllint [2] to lint the yaml-files. Yamllint can be downloaded using Python Pip:

pip3 install yamllint

To run the linter, execute this command from the project's root directory:

yamllint -c yamllint-config.yaml jenkins/**/*.yaml

Yamllint will not fix detected issues itself.

[1] https://docs.openstack.org/infra/jenkins-job-builder/index.html [2] https://pypi.org/project/yamllint/