diff --git a/openshift/integration/koji/README.md b/openshift/integration/koji/README.md index 653d8fa7..e158ab88 100644 --- a/openshift/integration/koji/README.md +++ b/openshift/integration/koji/README.md @@ -2,16 +2,30 @@ MBS-Koji integration tests ========================== ### Background -This directory contains a set of Jenkins pipelines for building MBS container images and running integration tests between MBS and Koji. These are based on the [WaiverDB](https://pagure.io/waiverdb) [pipeline](https://pagure.io/waiverdb/blob/master/f/openshift) structure. Please see the extensive documentation there for information on the pipeline layout and workflows. +This directory contains a set of Jenkins pipelines for building MBS container images and running +integration tests between MBS and Koji. These are based on the +[WaiverDB](https://pagure.io/waiverdb) +[pipeline](https://pagure.io/waiverdb/blob/master/f/openshift) structure. Please see the +extensive documentation there for information on the pipeline layout and workflows. ### Getting started #### Deploying a Jenkins master -Before you can run these pipelines you need to have a Jenkins master configured to communicate with an OpenShift project. The simplest way to do this is to run your Jenkins master in your OpenShift project. The first time you create a `BuildConfig` with `strategy.type: JenkinsPipeline`, OpenShift will deploy a Jenkins master using the default settings. However, these pipelines will not run using the default settings. It is recommended that before creating any `BuildConfigs`, you setup your Jenkins master using: +Before you can run these pipelines you need to have a Jenkins master configured to communicate with +an OpenShift project. The simplest way to do this is to run your Jenkins master in your OpenShift +project. The first time you create a `BuildConfig` with `strategy.type: JenkinsPipeline`, OpenShift +will deploy a Jenkins master using the default settings. However, these pipelines will not run +using the default settings. It is recommended that before creating any `BuildConfigs`, you setup +your Jenkins master using: ```bash make -C openshift/integration/koji/pipelines install-jenkins ``` -This will deploy and configure your Jenkins master with the required set of plugins. **Note:** The Jenkins master will be configured to disable script security. Be very careful when running untrusted code, as scripts will have full access to your Jenkins environment. If you don't wish to disable script security, you may edit `openshift/integration/koji/pipelines/Makefile` to change that setting. You will need to allow scripts to access a number of Groovy/Java APIs before the pipelines will run successfully. +This will deploy and configure your Jenkins master with the required set of plugins. **Note:** The +Jenkins master will be configured to disable script security. Be very careful when running untrusted +code, as scripts will have full access to your Jenkins environment. If you don't wish to disable +script security, you may edit `openshift/integration/koji/pipelines/Makefile` to change that +setting. You will need to allow scripts to access a number of Groovy/Java APIs before the pipelines +will run successfully. #### Configuring the pipelines To load the pipelines into OpenShift (and Jenkins) run: @@ -21,7 +35,8 @@ make -C openshift/integration/koji/pipelines install This will create all the objects required for running the pipelines. #### Configuring secrets for pushing images -If you're going to be pushing your images anywhere other than the OpenShift internal registry, you'll need to configure secrets which give you permission to push to that registry. +If you're going to be pushing your images anywhere other than the OpenShift internal registry, +you'll need to configure secrets which give you permission to push to that registry. - Go to your registry dashboard and create a robot account. - Backup your docker-config-json file (`$HOME/.docker/config.json`) if present. @@ -35,7 +50,7 @@ If you're going to be pushing your images anywhere other than the OpenShift inte #### Configuring a Pagure API key If you would like the pipelines to provide feedback on PRs and commits, you need to configure a Pagure API key. -- Go to your Pagure repository settings, and locate to the 'API Keys' section. +- Go to your Pagure repository settings, and go to the 'API Keys' section. - Click on the `Create new key` button to add new API key with the `Flag a pull-request`, `Comment on a pull-request`, and `Flag a commit` permissions. - Add your newly-created API key to OpenShift: ```bash @@ -43,22 +58,29 @@ make -C openshift/integration/koji/pipelines update-pagure-api-key KEY=