Created
May 4, 2020 22:17
-
-
Save pritidesai/8703634a0b079bf759642f5a9c2317ec to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"apiVersion": "tekton.dev/v1beta1", | |
"kind": "PipelineRun", | |
"metadata": { | |
"annotations": { | |
"kubectl.kubernetes.io/last-applied-configuration": "{\"apiVersion\":\"tekton.dev/v1beta1\",\"kind\":\"Pipeline\",\"metadata\":{\"annotations\":{},\"name\":\"sum-and-print-pipeline\",\"namespace\":\"default\"},\"spec\":{\"params\":[{\"default\":\"1\",\"name\":\"a\",\"type\":\"string\"},{\"default\":\"1\",\"name\":\"b\",\"type\":\"string\"}],\"tasks\":[{\"name\":\"sum-inputs\",\"params\":[{\"name\":\"a\",\"value\":\"$(params.a)\"},{\"name\":\"b\",\"value\":\"$(params.b)\"}],\"taskRef\":{\"name\":\"sum-two-ints\"}},{\"name\":\"print-sum\",\"params\":[{\"name\":\"result\",\"value\":\"$(tasks.sum-inputs.results.sum-result)\"}],\"taskRef\":{\"name\":\"format-result\"}}]}}\n" | |
}, | |
"creationTimestamp": "2020-05-04T22:05:24Z", | |
"generation": 1, | |
"labels": { | |
"tekton.dev/pipeline": "sum-and-print-pipeline" | |
}, | |
"name": "sum-and-print-pipeline-run", | |
"namespace": "default", | |
"resourceVersion": "3131124", | |
"selfLink": "/apis/tekton.dev/v1beta1/namespaces/default/pipelineruns/sum-and-print-pipeline-run", | |
"uid": "8f089861-f168-4633-afb5-15447cc9f4da" | |
}, | |
"spec": { | |
"params": [ | |
{ | |
"name": "a", | |
"value": "100" | |
}, | |
{ | |
"name": "b", | |
"value": "1000" | |
} | |
], | |
"pipelineRef": { | |
"name": "sum-and-print-pipeline" | |
}, | |
"timeout": "1h0m0s" | |
}, | |
"status": { | |
"completionTime": "2020-05-04T22:05:35Z", | |
"conditions": [ | |
{ | |
"lastTransitionTime": "2020-05-04T22:05:35Z", | |
"message": "Tasks Completed: 2, Skipped: 0", | |
"reason": "Succeeded", | |
"status": "True", | |
"type": "Succeeded" | |
} | |
], | |
"pipelineSpec": { | |
"params": [ | |
{ | |
"default": "1", | |
"name": "a", | |
"type": "string" | |
}, | |
{ | |
"default": "1", | |
"name": "b", | |
"type": "string" | |
} | |
], | |
"tasks": [ | |
{ | |
"name": "sum-inputs", | |
"params": [ | |
{ | |
"name": "a", | |
"value": "$(params.a)" | |
}, | |
{ | |
"name": "b", | |
"value": "$(params.b)" | |
} | |
], | |
"taskRef": { | |
"kind": "Task", | |
"name": "sum-two-ints" | |
} | |
}, | |
{ | |
"name": "print-sum", | |
"params": [ | |
{ | |
"name": "result", | |
"value": "$(tasks.sum-inputs.results.sum-result)" | |
} | |
], | |
"taskRef": { | |
"kind": "Task", | |
"name": "format-result" | |
} | |
} | |
] | |
}, | |
"startTime": "2020-05-04T22:05:24Z", | |
"taskRuns": { | |
"sum-and-print-pipeline-run-print-sum-zhm2m": { | |
"pipelineTaskName": "print-sum", | |
"status": { | |
"completionTime": "2020-05-04T22:05:35Z", | |
"conditions": [ | |
{ | |
"lastTransitionTime": "2020-05-04T22:05:35Z", | |
"message": "All Steps have completed executing", | |
"reason": "Succeeded", | |
"status": "True", | |
"type": "Succeeded" | |
} | |
], | |
"podName": "sum-and-print-pipeline-run-print-sum-zhm2m-pod-lh8lz", | |
"startTime": "2020-05-04T22:05:30Z", | |
"steps": [ | |
{ | |
"container": "step-print-sum", | |
"imageID": "docker-pullable://ubuntu@sha256:747d2dbbaaee995098c9792d99bd333c6783ce56150d1b11e333bbceed5c54d7", | |
"name": "print-sum", | |
"terminated": { | |
"containerID": "docker://88c7eb5560f9f351096db14ffda6ed3983b26945fc8b2733acc98dc5b5ed887a", | |
"exitCode": 0, | |
"finishedAt": "2020-05-04T22:05:35Z", | |
"reason": "Completed", | |
"startedAt": "2020-05-04T22:05:35Z" | |
} | |
} | |
], | |
"taskSpec": { | |
"params": [ | |
{ | |
"default": "0", | |
"name": "result", | |
"type": "string" | |
} | |
], | |
"steps": [ | |
{ | |
"image": "ubuntu", | |
"name": "print-sum", | |
"resources": {}, | |
"script": "echo -n \"*** Result = $(params.result) ***\"" | |
} | |
] | |
} | |
} | |
}, | |
"sum-and-print-pipeline-run-sum-inputs-g75lp": { | |
"pipelineTaskName": "sum-inputs", | |
"status": { | |
"completionTime": "2020-05-04T22:05:30Z", | |
"conditions": [ | |
{ | |
"lastTransitionTime": "2020-05-04T22:05:30Z", | |
"message": "All Steps have completed executing", | |
"reason": "Succeeded", | |
"status": "True", | |
"type": "Succeeded" | |
} | |
], | |
"podName": "sum-and-print-pipeline-run-sum-inputs-g75lp-pod-bccc5", | |
"startTime": "2020-05-04T22:05:24Z", | |
"steps": [ | |
{ | |
"container": "step-sum", | |
"imageID": "docker-pullable://bash@sha256:145e00f05adb8b2fcf914380f2efeeb0efeda8b3fb4025b1118146311099933f", | |
"name": "sum", | |
"terminated": { | |
"containerID": "docker://59d97de2245723495641799cdc8c84fbd5d2f4c2d6e85b59681df784361b9e4f", | |
"exitCode": 0, | |
"finishedAt": "2020-05-04T22:05:29Z", | |
"message": "[{\"key\":\"sum-result\",\"value\":\"1100\",\"resourceRef\":{},\"type\":\"TaskRunResult\"}]", | |
"reason": "Completed", | |
"startedAt": "2020-05-04T22:05:29Z" | |
} | |
} | |
], | |
"taskResults": [ | |
{ | |
"name": "sum-result", | |
"value": "1100" | |
} | |
], | |
"taskSpec": { | |
"params": [ | |
{ | |
"default": "1", | |
"description": "The first integer", | |
"name": "a", | |
"type": "string" | |
}, | |
{ | |
"default": "1", | |
"description": "The second integer", | |
"name": "b", | |
"type": "string" | |
} | |
], | |
"results": [ | |
{ | |
"description": "The sum of the two provided integers", | |
"name": "sum-result" | |
} | |
], | |
"steps": [ | |
{ | |
"image": "bash:latest", | |
"name": "sum", | |
"resources": {}, | |
"script": "#!/usr/bin/env bash\necho $(params.a)\necho $(params.b)\nls -R /tekton/\necho -n $(( \"$(params.a)\" + \"$(params.b)\" )) | tee $(results.sum-result.path)\n" | |
} | |
] | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment