A Jenkins Pipeline Shared Library for use in CentOS CI Jenkins Masters
Ask your Jenkins administrator to add this as an implicitly loaded Global
Shared Library (Manage Jenkins -> Configure System -> Global Pipeline Libraries
)
This set of shared libraries is meant to work in conjunction with a set of Openshift Images. These need to be built and available for pulling in all openshift namespaces.
This runner takes the project and runs tox for every released version of Fedora.
- Install the shared library into your jenkins master (if you're on a CentOS CI master, this is already done for you)
- Create a new Multibranch Pipeline job
New Item -> Multibranch Pipeline Job
- Add a Github Branch Source
Branch Sources -> Add source
pointing at your repository, be sure to use Github API credentials - Choose
.cico.pipeline
as the Build Configuration Script Path - Add a
.cico.pipeline
file in the root of your repository with the following contents:fedoraInfraTox {}
Note:
In vars/fedoraInfraTox.groovy, tag fedora:latest
is used for fedora:rawhide
image since the container file for python-tox fedora:rawhide lives under master branch of centosci/images/python-tox. Quay.io automatically tags master branch as master and latest.
If you want to test on a specific image, you can specify it as a argument to fedoraInfraTox like this:
fedoraInfraTox(["epel7"]) {}
Pull-requests are welcome!