Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Help with Bamboo YAML Spec Deployments

Edited

Hi all,

I have a very simple build pipeline defined in Bamboo YAML Specs.  It looks something like this...

version2

plan:
project-keyAPPS
  keyMYPROJECT
  namemy-cool-project

stages:
  - Validate:
      jobs:
      - Build

Build:
  tasks:
    - script:
        - make build
  artifacts:
    -
      nameBinaries
      locationout
      pattern'**/*'
      requiredtrue

Now, all I want to do is trigger a Deployment to our Staging environment after a successful build.  I've gone through the Bamboo YAML Specs reference, read through as much relevant documentation as I can find, and gone through a lot of community questions as well, and I can't seem to find a clear example of how to do this.  So here I am.

Here is what I have so far (with the above Build Plan definition at the top, with the "---" separating the Deployment definition below)...

# YAML from above

---

version
2

deployment:
  nameDeploy My Project
  source-planAPPS-MYPROJECT

environments:
- Staging
- Production

Staging:
triggers:
     - build-success
tasks:
- script:
- echo "Staging deploy placeholder!"

Production:
tasks:
- script:
- echo "PRODUCTION deploy placeholder!"

Nothing seems to get triggered.  Also, when I view the Deployment project, it says I don't have any environments defined.

All I want to do is get one of those placeholder "echos" to print!  Can someone please point me in the right direction?

Thanks in advance

Charles

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,757 views 10 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you