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

Help with Bamboo YAML Spec Deployments

Charles Bihis May 12, 2020

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
AUG Leaders

Atlassian Community Events