1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-26 06:23:37 +00:00
catalog/task/git-clone/0.1
Vincent Demeester 2bb049e125 Bump pipeline release to 0.14.2
- Update the pipeline to install for e2e tests
- Update images to refer to 0.14.0 version of pipeline

Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
2020-07-17 15:31:59 +01:00
..
samples Modifies directory names based on the proposal 2020-07-14 19:01:58 +01:00
tests Fix git clone tests 2020-07-16 18:35:59 +01:00
git-clone.yaml Bump pipeline release to 0.14.2 2020-07-17 15:31:59 +01:00
README.md Modifies the path in readme for samples directory 2020-07-15 02:43:58 +01:00

Git Task

This Task is Git task to work with repositories used by other tasks in your Pipeline.

git-clone

Please Note: this Task is only compatible with Tekton Pipelines versions 0.11-rc1 and greater!

This Task has two required inputs:

  1. The URL of a git repo to clone provided with the url param.
  2. A Workspace called output.

The git-clone Task will clone a repo from the provided url into the output Workspace. By default the repo will be cloned into the root of your Workspace. You can clone into a subdirectory by setting this Task's subdirectory param.

This Task does the job of the legacy GitResource PipelineResource and is intended as its replacement. This is part of our plan to offer replacement Tasks for Pipeline Resources as well as document those replacements.

Workspaces

  • output: A workspace for this Task to fetch the git repository in to.

Parameters

  • url: git url to clone (required)
  • revision: git revision to checkout (branch, tag, sha, ref…) (default: master)
  • refspec: git refspec to fetch before checking out revision (default:refs/heads/master:refs/heads/master)
  • submodules: defines if the resource should initialize and fetch the submodules (default: true)
  • depth: performs a shallow clone where only the most recent commit(s) will be fetched (default: 1)
  • sslVerify: defines if http.sslVerify should be set to true or false in the global git config (default: true)
  • subdirectory: subdirectory inside the "output" workspace to clone the git repo into (default: "")
  • deleteExisting: clean out the contents of the repo's destination directory if it already exists before cloning the repo there (default: false)
  • httpProxy: git HTTP proxy server for non-SSL requests
  • httpsProxy: git HTTPS proxy server for SSL requests
  • noProxy: git no proxy - opt out of proxying HTTP/HTTPS requests

Results

  • commit: The precise commit SHA that was fetched by this Task

Usage

git-clone

The following pipelines demonstrate usage of the git-clone Task: