-
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
Copy output from a previous task, resource is not used ? #1604
Comments
@eddycharly |
@vincent-pli what's the reasoning behind this ? previous task output and current task input must match ? So there is no way to take an output of a task and use it as input in another task whatever their names ? The examples in the docs are confusing https://github.com/tektoncd/pipeline/blob/master/docs/pipelines.md#from. Not sure why inputs:
- name: image
resource: my-image
from:
- build-app |
I think the reason is the The |
Each taskrun has no knowledge at all of other taskruns. The pipeline creates/orchestrates the taskruns, making the glue between them. I am trying to understand if an output of a task can be copied as the input of another task, regardless of the output and input names. For the copy to work, it looks like the name of the input and output have to be the same, it makes the tasks difficult to reuse as each task name their inputs/outputs independently. Could we improve this mechanism to allow copying ouput a from one task to input b of another task ? |
I think this is related/duplicate of #1002. This is (imho) one of the limitation of the PipelineResource (as currently designed) and one of the reason why PipelineResource are (so far) not considered to move to beta until they are redesigned (see #1369 and design doc) |
thanks @vdemeester the |
@eddycharly the current "idea" is to separate this concern from the PipelineResource, see #1438 |
You need to be part of |
/kind question |
Workspaces are in and can solve this problem: https://github.com/tektoncd/pipeline/blob/master/docs/workspaces.md @vdemeester ok to close this? |
@dibyom two task running on two different can share a workspace ? |
Closing as it is probably not relevant anymore in regards of workspaces. |
When a task in a pipeline uses output from a previous task, the resource element is ignored ?
Do the output and input have to share the same name for it to work ?
If i trust the code below :
pipeline/pkg/reconciler/pipelinerun/resources/input_output_steps.go
Lines 83 to 92 in c9a7a35
If the output is named
foo
in the previous task and the input is namedbar
in the current task, it looks like it will try to copy from a path likebucket/previous-task/bar
instead ofbucket/previous-task/foo
.The text was updated successfully, but these errors were encountered: