Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

warmannj
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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
Contributor
December 26, 2019

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

lephleg
Contributor
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
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 7, 2021

Same for me.

Simone Scardoni
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 2, 2022

Thanks you!

Pawel
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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 :/

Adam Sambridge
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 19, 2024

Yes it's extremely poor. The official Atlassian vscode plugin has a bitbucket pipeline validator, which is also extremely poor in more interesting ways - it flags stuff as errors which is not, and also misses all the errors which get thrown after you've committed the change and try and run a pipeline. I've been working with bitbucket pipelines for a few weeks now, and it's a terrible experience to be honest. There are so many things which are basic, simple functions that are just not supported in bitbucket pipelines but standard in other CI/CD or GitOps platforms. There are hundreds of tickets open on the official JIRA repo for BCLOUD suggestions, some with hundeds or even thousands of upvotes to add in these basic features and virtually zero activity from the devs at Atlassian, most of them are years old and are not even assigned to anyone. It's so poor, I'd never choose this platform for anything, there are so many better alternatives

Like Pawel likes this
1 vote
John Peterson
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 7, 2021

Me too.

0 votes
YY Brother
Community Champion
March 28, 2024

image.png

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events