Skip to content

Instantly share code, notes, and snippets.

@Snaver
Last active May 31, 2018 20:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Snaver/1d43f91700ed5da5f75d11802eda9c92 to your computer and use it in GitHub Desktop.
Save Snaver/1d43f91700ed5da5f75d11802eda9c92 to your computer and use it in GitHub Desktop.
# Bitbucket Pipelines Configuration file
# https://confluence.atlassian.com/bitbucket/configure-bitbucket-pipelines-yml-792298910.html
# options:
# size: 2x
# max-time: 60
pipelines:
default:
- step:
script:
- echo "This script runs on all branches that don't have any specific pipeline assigned in 'branches'."
branches:
master:
- step:
name: Sentry Release
image: getsentry/sentry-cli
script:
- sentry-cli releases -o "${SENTRY_ORG}" new -p "${SENTRY_PROJECT}" "${BITBUCKET_BUILD_NUMBER}"
- sentry-cli releases -o "${SENTRY_ORG}" set-commits --auto "${BITBUCKET_BUILD_NUMBER}"
- step:
name: Other steps..
script:
- echo 'Your builde code goes here..'
- step:
name: Sentry Finalize Release & Deploy
deployment: production
image: getsentry/sentry-cli
script:
- sentry-cli releases -o "${SENTRY_ORG}" finalize "${BITBUCKET_BUILD_NUMBER}"
- sentry-cli releases -o "${SENTRY_ORG}" deploys "${BITBUCKET_BUILD_NUMBER}" new -e "production"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment