- Openshift 4.4
- IBM Cloud Pak for Integration V2020.2.1
- IBM MQ V 9.2.0.0-r1 and mq.ibm.com/v1beta1 Operator ibm-mq.v1.1.0
- A namespace called
cp4i
where the MQ Operator ^ is installed - An entitlement key called
ibm-entitlement-key
Get from here for IBM Employees - A Github token see here for creating one
- Follow GitHub’s documentation on how to fork a repo to create your own fork of this repo.
-
Open the file
./install/install.sh
and insert your Git token and git usernnameGIT_TOKEN
=paste git token here and remove bracketsGIT_USERNAME
=paste github username here and remove brackets
-
Update the
PipelineResouce
to point to the url of your forked repository- update line 8 of this file
./tekton/resources/mq-git-repo-resource.yaml
and change thevalue
- update line 8 of this file
-
Make the install script executable
chmod +x ./install/install.sh
-
Run the install script
./install/install.sh
Follow steps here to add a webhook
-
Open your fork of the this repository in GitHub and navigate to the Webhooks menu. Then click the Add webhook button.
-
Set the Payload URL to the EventListener Route:
oc get route el-el-cicd-mq-hook-route --template='http://{{.spec.host}}'
-
Set the Content type to application/json.
-
You aren’t using the Secret in this tutorial, so you can leave it blank.
-
Select Just the Push Event