2023-12-22 23:59:23 +00:00
|
|
|
---
|
|
|
|
properties:
|
|
|
|
- name: branch
|
|
|
|
description: |
|
|
|
|
Change branch name.
|
2024-01-02 21:58:05 +00:00
|
|
|
type: string
|
2023-12-23 00:13:41 +00:00
|
|
|
defaultvalue: "main"
|
2024-01-03 20:22:10 +00:00
|
|
|
required: false
|
2023-12-22 23:59:23 +00:00
|
|
|
|
|
|
|
- name: commit_ref
|
|
|
|
description: |
|
|
|
|
Git commit ref.
|
2024-01-02 21:58:05 +00:00
|
|
|
type: string
|
2023-12-22 23:59:23 +00:00
|
|
|
defaultvalue: "refs/heads/main"
|
2024-01-03 20:22:10 +00:00
|
|
|
required: false
|
2023-12-22 23:59:23 +00:00
|
|
|
|
|
|
|
- name: commit_sha
|
|
|
|
description: |
|
|
|
|
Git commit sha.
|
2024-01-02 21:58:05 +00:00
|
|
|
type: string
|
|
|
|
defaultvalue: $CI_COMMIT_SHA
|
2024-01-03 20:22:10 +00:00
|
|
|
required: false
|
2023-12-22 23:59:23 +00:00
|
|
|
|
|
|
|
- name: depth
|
|
|
|
description: |
|
|
|
|
Clone depth.
|
2024-01-02 21:58:05 +00:00
|
|
|
type: integer
|
2023-12-22 23:59:23 +00:00
|
|
|
defaultvalue: 0
|
2024-01-03 20:22:10 +00:00
|
|
|
required: false
|
2023-12-22 23:59:23 +00:00
|
|
|
|
2023-12-23 15:12:56 +00:00
|
|
|
- name: insecure_skip_ssl_verify
|
2023-12-22 23:59:23 +00:00
|
|
|
description: |
|
2024-01-02 21:58:05 +00:00
|
|
|
Skip SSL verification of the remote machine.
|
|
|
|
|
|
|
|
Activating this option is insecure and should be avoided in most cases.
|
2023-12-23 15:12:56 +00:00
|
|
|
type: bool
|
2024-01-02 21:58:05 +00:00
|
|
|
defaultvalue: false
|
2024-01-03 20:22:10 +00:00
|
|
|
required: false
|
2023-12-22 23:59:23 +00:00
|
|
|
|
|
|
|
- name: lfs
|
|
|
|
description: |
|
|
|
|
Whether to retrieve LFS content if available.
|
2024-01-02 21:58:05 +00:00
|
|
|
type: bool
|
2023-12-22 23:59:23 +00:00
|
|
|
defaultvalue: true
|
2024-01-03 20:22:10 +00:00
|
|
|
required: false
|
2023-12-22 23:59:23 +00:00
|
|
|
|
|
|
|
- name: partial
|
|
|
|
description: |
|
|
|
|
Enable/disable partial clone.
|
2024-01-02 21:58:05 +00:00
|
|
|
type: bool
|
2023-12-22 23:59:23 +00:00
|
|
|
defaultvalue: false
|
2024-01-03 20:22:10 +00:00
|
|
|
required: false
|
2023-12-22 23:59:23 +00:00
|
|
|
|
|
|
|
- name: recursive
|
|
|
|
description: |
|
|
|
|
Clone submodules.
|
2024-01-02 21:58:05 +00:00
|
|
|
type: bool
|
2023-12-22 23:59:23 +00:00
|
|
|
defaultvalue: true
|
2024-01-03 20:22:10 +00:00
|
|
|
required: false
|
2023-12-22 23:59:23 +00:00
|
|
|
|
|
|
|
- name: remote
|
|
|
|
description: |
|
|
|
|
Git remote HTTP clone url.
|
2024-01-02 21:58:05 +00:00
|
|
|
type: string
|
|
|
|
defaultvalue: $CI_REPO_CLONE_URL
|
2024-01-03 20:22:10 +00:00
|
|
|
required: false
|
2023-12-22 23:59:23 +00:00
|
|
|
|
|
|
|
- name: remote_ssh
|
|
|
|
description: |
|
|
|
|
Git remote SSH clone url.
|
2024-01-02 21:58:05 +00:00
|
|
|
type: string
|
|
|
|
defaultvalue: $CI_REPO_CLONE_SSH_URL
|
2024-01-03 20:22:10 +00:00
|
|
|
required: false
|
2023-12-22 23:59:23 +00:00
|
|
|
|
|
|
|
- name: safe_directory
|
|
|
|
description: |
|
|
|
|
Define/replace safe directories.
|
2024-01-02 21:58:05 +00:00
|
|
|
type: string
|
|
|
|
defaultvalue: $CI_WORKSPACE
|
2024-01-03 20:22:10 +00:00
|
|
|
required: false
|
2023-12-22 23:59:23 +00:00
|
|
|
|
|
|
|
- name: ssh_key
|
|
|
|
description: |
|
2024-01-02 21:58:05 +00:00
|
|
|
Private key for SSH clone.
|
|
|
|
type: string
|
2024-01-03 20:22:10 +00:00
|
|
|
required: false
|
2023-12-22 23:59:23 +00:00
|
|
|
|
|
|
|
- name: submodule_override
|
|
|
|
description: |
|
|
|
|
JSON map of submodule overrides.
|
2024-01-02 21:58:05 +00:00
|
|
|
type: generic
|
2024-01-03 20:22:10 +00:00
|
|
|
required: false
|
2023-12-22 23:59:23 +00:00
|
|
|
|
|
|
|
- name: submodules_partial
|
|
|
|
description: |
|
|
|
|
Update submodules via partial clone (`depth=1`).
|
2024-01-02 21:58:05 +00:00
|
|
|
type: bool
|
2023-12-22 23:59:23 +00:00
|
|
|
defaultvalue: true
|
2024-01-03 20:22:10 +00:00
|
|
|
required: false
|
2023-12-22 23:59:23 +00:00
|
|
|
|
|
|
|
- name: submodules_update_remote
|
|
|
|
description: |
|
|
|
|
Update remote submodules.
|
2024-01-02 21:58:05 +00:00
|
|
|
type: bool
|
2023-12-22 23:59:23 +00:00
|
|
|
defaultvalue: false
|
2024-01-03 20:22:10 +00:00
|
|
|
required: false
|
2023-12-22 23:59:23 +00:00
|
|
|
|
|
|
|
- name: tags
|
|
|
|
description: |
|
2023-12-23 20:46:36 +00:00
|
|
|
Fetch git tags during clone.
|
2024-01-02 21:58:05 +00:00
|
|
|
type: bool
|
2023-12-23 20:46:36 +00:00
|
|
|
defaultvalue: true
|
2024-01-03 20:22:10 +00:00
|
|
|
required: false
|
2023-12-22 23:59:23 +00:00
|
|
|
|
|
|
|
- name: use_ssh
|
|
|
|
description: |
|
2024-01-02 21:58:05 +00:00
|
|
|
Using SSH for git clone.
|
|
|
|
type: bool
|
2023-12-22 23:59:23 +00:00
|
|
|
defaultvalue: false
|
2024-01-03 20:22:10 +00:00
|
|
|
required: false
|
2023-12-22 23:59:23 +00:00
|
|
|
|
|
|
|
- name: workdir
|
|
|
|
description: |
|
|
|
|
Path to clone git repository.
|
2024-01-02 21:58:05 +00:00
|
|
|
type: string
|
|
|
|
defaultvalue: $CI_WORKSPACE
|
2024-01-03 20:22:10 +00:00
|
|
|
required: false
|