Hi all,
I have a very simple build pipeline defined in Bamboo YAML Specs. It looks something like this...
version: 2
plan:
project-key: APPS
key: MYPROJECT
name: my-cool-project
stages:
- Validate:
jobs:
- Build
Build:
tasks:
- script:
- make build
artifacts:
-
name: Binaries
location: out
pattern: '**/*'
required: true
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:
name: Deploy My Project
source-plan: APPS-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