Forums

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

Indentation problem not caught by bitbucket-pipelines.yml json schema

Dylan Landry July 30, 2025

 

I had a deployment fail recently because I incorrectly indented a part of the file. We run this file against the bitbucket pipeline json schema to validate it, but didn't catch it.

I tried to copy and paste the pipeline here, but it somehow removes all the indentation. I'll do my best to fix it.

```

definitions:

    steps:

        - step: &build-docker-image

            services:

                - docker           

```

The problem is that the `services` part should be indented one more time. So that it is accessible within the `step` object like `steps[0].step.services`. As opposed to being a sibling property of `step` like `steps[0].services`.

I don't know exactly why this issue is not caught by the json schema. When I look at it the `definitions` schema doesn't even have a property for `steps`. So I'm not sure how autocomplete is even working for that part of the file.

 

1 answer

0 votes
Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 1, 2025

Hey @Dylan Landry 

I can't seem to understand the situation here, as the community doesn't do much justice to the code formatting. Could you raise a support ticket with us so we can review it?

Please share the failed deployment URL in the ticket to help our Support engineer investigate.

Thanks!
Regards,
Syahrul

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events