bcgov / helm-charts

5 stars 5 forks source link

add pipeline parameters and ability to bind them to values passed fro… #26

Closed bolyachevets closed 1 year ago

bolyachevets commented 2 years ago

…m webhook

  1. We need global pipeline parameters that can be set via webhook trigger and shared by the tasks - hence add pipeline_params https://tekton.dev/docs/pipelines/pipelines/#specifying-parameters

  2. We need to bind these parameters to values received from webhook

  3. We need to set custom interceptors to filter webhooks

  4. Maven build needs more pod resource than default setting, mounting of settings.xml, and pvc volumes (e.g., I have been using a pvc to cache artifactory repo) - hence need to be able to have more customizations for Task objects

  5. Added ability to switch service accounts between tasks

  6. I started working on an example - it reacts to open/reopen pull_request gets url/commit sha from the webhook, and passes these to git-clone ClusterTask and does a maven build, then the image is build using .war generated from maven step via ocp cli ClusterTask, it is deployed in test and we subsequently run python integration tests against it with a comment being posted against the PR that contains pytest logs