Pipeline: Two quick questions: Github Webhook tutorial & how to rerun pipelines and TaskRuns?

Created on 9 Jan 2020  路  3Comments  路  Source: tektoncd/pipeline

  1. Do you have any examples showing how to use Github WebHooks to start the/a pipelinerun for CI/CD flow?

  2. I am looking at this tutorial:
    https://github.com/tektoncd/pipeline/blob/master/docs/tutorial.md#task-inputs-and-outputs
    but how do you restart taskruns and pipelineruns - it would be nice to be able do something like:
    tkn pipelinerun <already kubectl apply -f file.yaml>
    How do you test and re-run taskrun/pipelinerun - do you kubectl apply/delete -f filename

kinquestion

All 3 comments

Hey @JCzz, if you're looking for UIs there's our Tekton Webhooks Extension that's built for 1., see https://github.com/tektoncd/experimental/tree/master/webhooks-extension - you could also use Jenkins X. With the webhooks extension we're using Tekton Triggers the EventListener component, backed by an Ingress or Route as the thing that is pinged from GitHub.

For 2. you can use https://github.com/tektoncd/dashboard (we have rerun that basically copies an existing PipelineRun spec and kicks it off again)

@vdemeester for tkn and general rerun guidance otherwise 馃樃

For tkn you can just use the -L option to rerun the last task or pipeline

% tkn task start --help|grep last

  -L, --last                     re-run the task using last taskrun values

% tkn pipeline start --help|grep last
  -L, --last                          re-run the pipeline using last
pipelinerun values

Thanks @a-roberts and @chmouel

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pritidesai picture pritidesai  路  4Comments

andydude picture andydude  路  3Comments

r0bj picture r0bj  路  3Comments

bobcatfish picture bobcatfish  路  4Comments

ImJasonH picture ImJasonH  路  4Comments