-
Create the needed resources (
Namespace,Task,Pipeline,EventListener,TriggerBinding,TriggerTemplate,Trigger):oc apply -k https://github.com/gmeghnag/pipelines-demo
-
Expose the
EventListenerto create aRoute:oc expose svc/el-test-el -n pipelines-demo
-
Execute an
HTTPPOSTrequest to trigger a newPipelineRun:curl -X POST -H "Content-Type: application/json" --data '{"repository": {"url": "test-url", "name": "test-reponame"}, "head_commit": {"id": "test-commit"}}' "http://$(oc get route el-test-el -n pipelines-demo -o jsonpath='{.spec.host}')"
$ tkn version
Client version: 0.31.0
Chains version: v0.16.0
Pipeline version: v0.47.4
Triggers version: v0.24.1
Operator version: v0.67.0
$ oc get csv,sub -n openshift-operators
NAME DISPLAY VERSION REPLACES PHASE
clusterserviceversion.operators.coreos.com/openshift-pipelines-operator-rh.v1.11.1 Red Hat OpenShift Pipelines 1.11.1 Succeeded
NAME PACKAGE SOURCE CHANNEL
subscription.operators.coreos.com/openshift-pipelines-operator-rh openshift-pipelines-operator-rh redhat-operators pipelines-1.11