-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make Pipeline task name available in Task/ClusterTask #2294
Comments
Stale issues rot after 30d of inactivity. /lifecycle rotten Send feedback to tektoncd/plumbing. |
Rotten issues close after 30d of inactivity. /close Send feedback to tektoncd/plumbing. |
Issues go stale after 90d of inactivity. /lifecycle stale Send feedback to tektoncd/plumbing. |
@tekton-robot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
This may have been somewhat solved by #1522 (thanks @R2wenD2 !) You can now access variables like the pipelinerun name and the pipelinename in the pipeline - to make these available to a Task/ClusterTask it could declare them as params. |
The pipeline task name set in the pipeline definition should be made available in the task as internal param or env variable (or in some other way) during execution. The steps/sidecar in the task should be able to use the pipeline task name which could be useful logging/tracing/debugging purposes.
In the above example pipeline task name is
build-the-image
, but it invokes the taskbuild-push
. If certain contextual info such as the pipeline task name, pipeline name etc is made available in the taskbuild-push
, this will be helpful in understanding the context in which this task was executed (in our case, the same task is executed multiple times in a pipeline to perform same activities for different set of artifacts).For eg.
build-push
task will be used to push ui-app image as well api-server image.The text was updated successfully, but these errors were encountered: