mirror of
https://github.com/tektoncd/catalog.git
synced 2024-11-26 06:23:37 +00:00
2bb049e125
- 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> |
||
---|---|---|
.. | ||
samples | ||
tests | ||
git-clone.yaml | ||
README.md |
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:
- The URL of a git repo to clone provided with the
url
param. - 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: