Bitbucket Pipelines Conditionals

Single Line

- if [ $BITBUCKET_BRANCH == 'master' ]; then
- echo "We are on master"
- fi

Multi Line

- >
  if [ $BITBUCKET_BRANCH == 'master' ]; then
    echo "We are on master :)"
  else
    echo "We are not on master :("
  fi

Leave a Reply

Your email address will not be published. Required fields are marked *