opendevstack / ods-pipeline

Alternative ODS CI/CD pipeline based on Tekton / OpenShift Pipelines
Apache License 2.0
13 stars 5 forks source link

Add PipelineRun name to ODS context #737

Closed michaelsauter closed 8 months ago

michaelsauter commented 8 months ago

The ODS context is quite helpful when rendering documents with https://github.com/opendevstack/ods-pipeline-adoc. One thing that is currently missing, but often required for documents, is a reference of the PipelineRun name.

michaelsauter commented 8 months ago

For documents, this can also be achieved by passing the value as a param to the documentation task. Another alternative is to use the K8s downward API (the pipeline run name is available as a pod label).