You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the move to Tekton Task Results needing to be defined rather than be dynamic we need to understand how to do this for the tasks that don't have predefined result parameters such as:
script
custom tasks
JSON to result parameter
Possible solutions are;
Add a result parameter creatable to the Script and Custom task types
Figure out how to include the dynamic result parameter creation as a side car (implement lifecycle sidecar as a feature enhancement of Boomerang Flow over and above Tekton)
The text was updated successfully, but these errors were encountered:
tlawrie
changed the title
Handle result parameters for Script and Custom Tasks
Handle result parameters for Tasks with unknown or dynamic results
May 21, 2021
After much investigation, it would become highly complex trying to run the original lifecycle watcher system in the implementation of Tekton. In particular as running as a sidecar, it will be terminated as soon as the main step containers are finished, not giving time to read the files from the container and post back. Alternatively, running the lifecycle as a final step means that it wont always run due to follow on sequential steps only running after prior success.
The solution here is now to implement the following
Update Task: "Json Path to Result Parameter" to handle retrieving from file.
Update the "HTTP Call" task to off output to File instead of result parameter.
Update the "Execute Shell" task to define result parameters
Update the "Run Custom Task" task to define result parameter
For (3) and (4) above we need to determine best implementation for defining name and description for the result parameters.;
A. Create a tab on the modal for defining result parameters.
B. Create a new section at the bottom for Result Parameters with name, description fields and an add button.
Services have been up pushed up to dev to include spots for saving output properties on a task configuration
"outputs" : [
{
"name" : "test here",
"description" : "description here"
}
]
Also new flow task template type "script" has been introduced so "script" and "custom" will be the tasks which we will display output properties.
With the move to Tekton Task Results needing to be defined rather than be dynamic we need to understand how to do this for the tasks that don't have predefined result parameters such as:
Possible solutions are;
The text was updated successfully, but these errors were encountered: