【问题标题】:Is there any way to pass params between task in tekton?有没有办法在 tekton 的任务之间传递参数?
【发布时间】:2021-11-30 14:45:39
【问题描述】:

我有两个不同的任务,我想将第一个任务的 taskRun 名称传递给第二个任务。我想知道是否有办法做到这一点。

【问题讨论】:

    标签: tekton tekton-pipelines


    【解决方案1】:

    taskRun 名称可作为 variable 使用,您可以在第一个任务中将其作为 task result 发出。

    然后您可以使用上一个任务的 result 作为下一个任务的输入参数。见Passing one Task’s Results into the Parameters or when expressions of another

    应该可以解决的。

    【讨论】:

    • 非常感谢@jonas
    猜你喜欢
    • 2018-12-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-09-30
    • 1970-01-01
    • 1970-01-01
    • 2012-11-29
    相关资源
    最近更新 更多