Replies: 1 comment 1 reply
-
you can have two tasks in a pipeline each of which can reference the same gradle task but pass in different parameters |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone!
https://tekton.dev/docs/pipelines/pipelineruns/#specifying-parameters - You can specify Parameters that you want to pass to the Pipeline during execution, including different values of the same parameter for different Tasks in the Pipeline
Can someone provide me example? I have two gradle tasks (https://hub.tekton.dev/tekton/task/gradle) in my pipeline. Let's say they have following names: gradle_1, gradle_2 running one by one.
How can I pass for task gradle_1 value for parameter TASK = build, and for gradle_2 TASK=something else?
Or maybe it is possible to create only one gradle task in pipeline and it will be executed so many times how many I provide values for TASKS parameter? Is it possible?
Beta Was this translation helpful? Give feedback.
All reactions