Last active
May 31, 2018 20:04
-
-
Save Snaver/1d43f91700ed5da5f75d11802eda9c92 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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