Bitbucket: deploy on tags not working

shipped
bitbucket
codedeploy
circle.yml

#1

I have a bitbucket repo (in beta), and I’m trying to deploy by tags. No matter what I change my configuration to, I can’t seem to get Circle CI to actually run the deploy commands. This is my circle.yml:

---
machine:
  java:
    version:
      oraclejdk8

general:
  branches:
    ignore:
      - /^(?!master).*$/ # Negative lookahead regex.  Only build master.

deployment:
  bitbucket:
    tag: /v[0-9]+(\.[0-9]+)+(-rc[0-9]+)?/ # v1.2.3 and v1.2.3-rc1
    commands:
      - ./gradlew clean
      - ./gradlew assemble
      - ./circle-ci/upload-to-bitbucket.sh -u $BITBUCKET_USER -p $BITBUCKET_KEY -t $CIRCLE_TAG

Any thoughts? Is this a bitbucket specific bug?

Thanks!


After rebase, orphan commits will stick around on BB
#2

Ive had a reply from the circle guys about this one. Tagged deploys are not implemented for bitbucket yet. the response (i got it a while ago) said it should be in V soon.


#3

Thank you so much for reporting this issue. Our team is currently working on adding this functionality for Bitbucket.

We will reach out to you as soon as it is fixed. Please feel free to contact us at beta@circleci.com if you have any other questions. Thank you so much for your patience.


#4

We have fixed this issue. Please reach out to us at beta@circleci.com if you are still facing problems.

Thank you so much for your patience.


#5

Thanks. Can confirm this is working for me.


#6

We’re also using tags to run production deployment, but the build is not always triggered. It usually works after a few retry.

Here is our deployment config:

deployment:
   dev:
     branch: [master]
     commands:
       - ...

  prod:
    tag: /release-.*/
    commands:
      - ...

#7

Our bitbucket tag builds are also not working.

below is our config:

deployment:
  staging:
    branch: staging
    commands:
      - K8S_NAMESPACE=default ETHICAL_JOBS_ENV=staging ./operations/deploy.sh
  production:
    branch: master
    commands:
      - K8S_NAMESPACE=production ETHICAL_JOBS_ENV=production ./operations/deploy.sh
  release:
    tag: /v[0-9]+(\.[0-9]+)*/
    commands:
      - K8S_NAMESPACE=default ETHICAL_JOBS_ENV=staging ./operations/deploy.sh

#8

Go through Deploying on tag - every tag listed in dashboard


#9