Closed adrianriobo closed 4 years ago
Just wanted to clarify :- you are able to use a resourceSpec
directly in your PipelineRuns
, and I believe you should be able to refer to task results in the param values that you feed to a Pipeline Task from the PipelineRun.
I'm not 100% clear on the use case for putting a resourceSpec directly into a Pipeline. Could you describe a bit more the problem you're trying to solve?
Hi @sbwsg sorry for the late reply... just let me try to explain my use case;
First, just clarify I am using tekton triggers to integrate github + tekton, so pipelineruns are managed by triggers and I just can play with paremeters in the request. to template the pipeline...
Got 1 project with my source code for my app: https://github.com/org/app/source-code.git Got 1 project with serving file for my app: https://github.com/org/app/serving.git
I configured the webhook at source code project, so it will be executed on every push there...
My pipeline just: build code, build the image, push the image and finally deploy... to deploy it is required to clone the serving project (which contains the manifests)....
Binding parameters with triggers does not support any kind of string manipulation...so I can not get the url of the serving project.
With my previous example I can use the source code project url ... do some manipulation (one task) and then use it as input in other task, specially convenient as git resource. But to do this approach I require this resourceSpec at Pipeline definition.
Hope this helps to understand, please let me know if you have any other suggestions.
Just found this and this issue regarding not promoting pipeline resources to beta so a task equivalence is released...
This will fit totally in my use case, so maybe there is no point to evolve pipeline resources
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale
.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close
.
/lifecycle stale
Send feedback to tektoncd/plumbing.
Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten
.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close
.
/lifecycle rotten
Send feedback to tektoncd/plumbing.
Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen
.
Mark the issue as fresh with /remove-lifecycle rotten
.
/close
Send feedback to tektoncd/plumbing.
@tekton-robot: Closing this issue.
Expected Behavior
Allow using resourceSpec within pipeline definitions. The use case is related to runtime params, it is expected to use as a task input resource (git) with a parameter resulting from a previous task within the pipeline.
Example:
Actual Behavior
Get an error when creating the pipeline:
Additional Info