
Clone
Clone
yaml
type: "io.kestra.plugin.git.Clone"Examples
yaml
id: git_clone
namespace: company.team
tasks:
- id: clone
type: io.kestra.plugin.git.Clone
url: https://github.com/dbt-labs/jaffle_shop
branch: main
yaml
id: git_clone
namespace: company.team
tasks:
- id: clone
type: io.kestra.plugin.git.Clone
url: https://github.com/kestra-io/examples
branch: main
username: git_username
password: "{{ secret('GITHUB_ACCESS_TOKEN') }}"
yaml
id: git_clone
namespace: company.team
tasks:
- id: clone
type: io.kestra.plugin.git.Clone
url: git@github.com:kestra-io/kestra.git
directory: kestra
privateKey: <keyfile_content>
passphrase: <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
beforeCommands:
- pip install requests pandas > /dev/null
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
branchstring
cloneSubmodulesbooleanstring
commitstring
connectTimeoutintegerstring
Default
10000depthintegerstring
Default
1directorystring
gitConfigobject
noProxybooleanstring
passphrasestring
passwordstring
privateKeystring
readTimeoutintegerstring
Default
60000