Git Push with YAML

YAML parameters for Git Push

NameTypeDescription
action
Required
StringThe ID of the action.
push_url
Required
StringThe url to the repository.
type
Required
StringThe type of the action. Should be set to PUSH.
git_auth_mode
Required
StringThe authentication mode for Git Push. Can be one of HTTP, PRIVATE_KEY or PUBLIC_BUDDY_KEY.
server_key
Required
StringThe private SSH key. Required if authentication_mode is set to PRIVATE_KEY.
trigger_timeStringSpecifies when the action should be executed. Can be one of ON_EVERY_EXECUTION, ON_FAILURE or ON_BACK_TO_SUCCESS.
loginStringThe username required to connect to the server.
passwordStringThe password required to connect to the server.
use_custom_gitignoreBooleanWhen set to false the push will ignore paths listed in .gitignore file.
isolatedBooleanWhen set to true, action will push only repository files (without artifacts).
target_branchStringDefines the remote branch to which the push will be performed. If empty, files will be pushed to the same branch.
deployment_excludesString[]The paths and/or files that will be left out during the push. Only works when use_custom_gitignore is set to true.
deployment_includesString[]The exceptions from the ignore patterns set in deployment_excludes.
push_tagsBooleanDefines whether the tags should be pushed to the remote repository or not.
without_forceBooleanDefines whether the --force flag should be used when invoking the git push command or not.
commentStringOptional custom git commit message.
trigger_conditionStringDefines when the build action should be run. Can be one of ALWAYS, ON_CHANGE, ON_CHANGE_AT_PATH, VAR_IS, VAR_IS_NOT or VAR_CONTAINS.
trigger_condition_pathsString[]Required when trigger_condition is set to ON_CHANGE_AT_PATH.
trigger_variable_keyStringRequired when trigger_condition is set to VAR_IS, VAR_IS_NOT or VAR_CONTAINS. Defines the name of the desired variable.
trigger_variable_valueStringRequired when trigger_condition is set to VAR_IS, VAR_IS_NOT or VAR_CONTAINS. Defines the value of the desired variable which will be compared with its current value.
disabledBooleanWhen set to true the action is disabled. By default it is set to false.

YAML example for Git Push

actions:
- action: "Push to https://app.buddy.works/buddy/repo"
type: "PUSH"
login: "api_tests_user"
password: "api_tests_password"
push_tags: true
push_url: "https://app.buddy.works/buddy/repo"
target_branch: "stage"
git_auth_mode: HTTP
server_key: "secure!dN5hXm/7MS9f0ISkfo0agjjxxAMI9wqBkyvtkn6lK6218sFU8owuwTjQHFGEMa01"
use_custom_gitignore: false
isolated: true
without_force: false
comment: "Push from Buddy"