Sentry with YAML

YAML parameters for Sentry

NameTypeDescription
organization_slug
Required
StringThe slug of the organization the release belongs to.
integration_id
Required
IntegerThe ID of the integration.
name
Required
StringThe name of the action.
trigger_time
Required
StringSpecifies when the action should be executed. Can be one of ON_EVERY_EXECUTION, ON_FAILURE or ON_BACK_TO_SUCCESS.
type
Required
StringThe type of the action. Should be set to SENTRY.
version
Required
StringThe version identifier of the release.
environment
Required
StringThe environment you’re deploying to.
organization_name
Required
StringThe name of the organization the release belongs to.
organization_slug
Required
StringThe short name of your organization.
deploy_urlStringThe optional url that points to the deploy.
release_urlStringAn optional commit reference.
projects
Required
String[]The list of project slugs that are involved in this release.
run_only_on_first_failureBooleanDefines whether the action should be executed on each failure. Restricted to and required if the trigger_time is ON_FAILURE.
after_action_idIntegerThe numerical ID of the action, after which this action should be added.
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.
repositoryStringIf Sentry is integrated with repository provider, you can enter the project slug here. You can use the $BUDDY_REPO_SLUG variable as well.
variablesVariable[]The list of variables defined for this action.

YAML example for Sentry

actions:
- action: "Sentry Action"
type: "SENTRY"
trigger_time: "ON_EVERY_EXECUTION"
organization_slug: "buddyworks"
organization_name: "Buddy"
version: "${execution.to_revision.revision}"
environment: "linux"
release_url: "${execution.to_revision.html_url}"
deploy_url: "${execution.html_url}"
repository: "$BUDDY_REPO_SLUG"
projects:
- "java"
- "my_proj"
integration_id: 1
variables:
- key: "ftp_login"
value: "userLogin123"
description: "The name of user to FTP."
- key: "ftp_password"
value: "secure!14ivLMxPgv7TX6c9+ITX/g=="
encrypted: true
description: "The password for ftp."