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

Error in your pipeline. Step is empty, null or missing

warmannj November 9, 2019

 

I have the following error when running my pipeline: 

Configuration error

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.

3 answers

6 votes
lephleg December 26, 2019

Same issue here. When using overrides the pipeline reports "Step is empty, null or missing"

lephleg December 26, 2019

@warmannj Solved it. It was a matter of indentation indeed.

Notice the extra indent inside - step:

pipelines:
branches:
develop:
- step:
<<: *deployToECS
deployment: development

 

Like Simone Scardoni likes this
Matt Hudson October 7, 2021

Same for me.

Simone Scardoni June 2, 2022

Thanks you!

Pawel August 4, 2023

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 :/

1 vote
John Peterson December 7, 2019

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...

Matt Hudson October 7, 2021

Me too.

0 votes
YY哥
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 28, 2024

image.png

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events