You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I have the following error when running my pipeline:
There is an error in your bitbucket-pipelines.yml at [pipelines > branches > develop > 1]. To be precise: Step is empty, null, or missing.
Another user reported a similar issue earlier. The answer given there does not work for me as the issue was with indentation. My file does not have that error.
Here's my file:
definitions:
steps:
- step: &deployToECS
name: Deploy to ECS
services:
- docker
script: # Modify the commands below to build your repository.
- pipe: atlassian/aws-ecs-deploy:1.0.4
variables:
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
AWS_DEFAULT_REGION: $AWS_REGION
CLUSTER_NAME: '$ECS_CLUSTER_NAME'
SERVICE_NAME: '$ECS_SERVICE_NAME'
TASK_DEFINITION: '$ECS_TASK_DEFINITION_FILE'
DEBUG: 'true'
pipelines:
branches:
develop:
- step:
<<: *deployToECS
deployment: development
PS: The question editor here removes spacing when I paste my file contents so indentation might not be correct here.
However, the pipeline works if I change the step to reuse the anchor inline:
pipelines:
branches:
develop:
- step: *deployToECS
deployment: development
This "works" but I can not override variables with the deployment specific variables in this case.
Any suggestions would be helpful.
Same issue here. When using overrides the pipeline reports "Step is empty, null or missing"
@warmannj Solved it. It was a matter of indentation indeed.
Notice the extra indent inside - step:
pipelines:
branches:
develop:
- step:
<<: *deployToECS
deployment: development
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, that was that. It's incredible that Bitbucket Pipelines - Validator (atlassian.io) is so bad it doesn't catch absolutely any errors; Every time I reconfigure my pipeline mu spend around 10 commits till I get it right :/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have the same problem anyone find a way to do this? i have tried the <<: *deployToECS way it validates but then when pipelines build says its invalid...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.