Clone
Certified
Clone a Git repository
Clone
Certified
Clone a Git repository
yaml
type: io.kestra.plugin.git.CloneExamples
yaml
id: git_clone
namespace: company.team
tasks:
- id: wdir
type: io.kestra.plugin.core.flow.WorkingDirectory
tasks:
- id: clone
type: io.kestra.plugin.git.Clone
url: https://github.com/kestra-io/blueprints
branch: main
yaml
id: git_clone
namespace: company.team
tasks:
- id: wdir
type: io.kestra.plugin.core.flow.WorkingDirectory
tasks:
- id: clone
type: io.kestra.plugin.git.Clone
url: https://github.com/kestra-io/blueprints
branch: main
username: git_username
password: "{{ secret('GITHUB_ACCESS_TOKEN') }}"
yaml
id: git_clone
namespace: company.team
tasks:
- id: wdir
type: io.kestra.plugin.core.flow.WorkingDirectory
tasks:
- id: clone
type: io.kestra.plugin.git.Clone
url: git@github.com:kestra-io/kestra.git
directory: kestra
privateKey: "{{ secret('SSH_PRIVATE_KEY') }}"
passphrase: "{{ secret('SSH_PASSPHRASE') }}"
yaml
id: git_python
namespace: company.team
tasks:
- id: file_system
type: io.kestra.plugin.core.flow.WorkingDirectory
tasks:
- id: clone_repository
type: io.kestra.plugin.git.Clone
url: https://github.com/kestra-io/examples
branch: main
- id: python_etl
type: io.kestra.plugin.scripts.python.Commands
dependencies:
- requests
- pandas
commands:
- python examples/scripts/etl_script.py
yaml
id: git_clone_commit
namespace: company.team
tasks:
- id: clone_at_sha
type: io.kestra.plugin.git.Clone
url: https://github.com/kestra-io/kestra
commit: 98189392a2a4ea0b1a951cd9dbbfe72f0193d77b
Properties
url *Requiredstring
auth Non-dynamic
Definitions
io.kestra.plugin.git.AbstractCloningTask-Auth
autobooleanstring
Default
truepasswordstring
usernamestring
branch string
cloneAllBranches booleanstring
Default
truecloneSubmodules booleanstring
commit string
connectTimeout integerstring
Default
10000depth integerstring
Default
1directory string
gitConfig object
kestraUrl string
noProxy booleanstring
noTags booleanstring
Default
falsepassphrase string
password string
privateKey string
readTimeout integerstring
Default
60000