This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.4.9. Triggering a PipelineRun
Whenever a push
event occurs in the Git repository, the configured Webhook sends an event payload to the publicly exposed EventListener service route. The EventListener service of the application processes the payload, and passes it to the relevant TriggerBindings and TriggerTemplates pair. The TriggerBinding extracts the parameters and the TriggerTemplate uses these parameters to create resources. This may rebuild and redeploy the application.
In this section, you push an empty commit to the front-end vote-ui
repository, which then triggers the PipelineRun.
Procedure
From the terminal, clone your forked Git repository
vote-ui
:git clone git@github.com:<your GitHub ID>/vote-ui.git -b release-tech-preview-2
$ git clone git@github.com:<your GitHub ID>/vote-ui.git -b release-tech-preview-2
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Push an empty commit:
git commit -m "empty-commit" --allow-empty && git push origin release-tech-preview-2
$ git commit -m "empty-commit" --allow-empty && git push origin release-tech-preview-2
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Check if the PipelineRun was triggered:
tkn pipelinerun list
$ tkn pipelinerun list
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Notice that a new PipelineRun was initiated.