Skip to content

Latest commit

 

History

History
28 lines (16 loc) · 1.11 KB

README.md

File metadata and controls

28 lines (16 loc) · 1.11 KB

Simple clone-task usage

This sample sub-directory contains an EventListener definition that you can include in your tekton pipeline configuration to run an example showing a simple usage of the git-clone-repo

  1. Create a toolchain (or update a toolchain) to include:

    • the git repository that you want to clone, which can be private
    • the repository containing this tekton task
    • a tekton pipeline definition

    Toolchain overview

  2. Add the definitions of this task and the sample (git and git/sample paths)

    Tekton pipeline definitions

  3. Add the environment properties:

    • apikey to provide an API key used for the ibmcloud login/access
    • repository to indicate the git repository url to clone (correspoding to the one integrated in the toolchain)

    Tekton pipeline environment properties

  4. Create a manual trigger to start the sample listener

    Tekton pipeline sample trigger

  5. Run the pipeline