Lesstep
Bitbucket Cloud · Pipelines · Checked October 31, 2026

Bitbucket Pipelines: "There is an error in your bitbucket-pipelines.yml"

Bitbucket read the file and refused it, so the pipeline did not run. The message names where, then what:

There is an error in your bitbucket-pipelines.yml at [pipelines > branches > develop > 1 > step > script > 0]. Missing or empty command string. Each item in this list should either be a single command string or a map defining a pipe invocation.

The part in brackets is the path from the top of the file: names are keys, numbers are positions in a list counting from 0, and (root level) is the top of the file. Here: under pipelines:, branches:, develop:, the second item, its step:, its script:, the first command.

Four messages people report, and what was behind them

From Atlassian's community, where each was answered:

Check the file before you push

Watch your pipelines from IntelliJ IDEA

Pipeline Inbox for Bitbucket Pipelines, a plugin by Lesstep for JetBrains IDEs 2024.1 or later, lists the pipelines of all your Bitbucket Cloud repositories in an IDE tool window, next to the editor that checks the file. For a failed pipeline it shows the failed step and the end of its log, or the reason Bitbucket gives when it ended the pipeline with an error, and your current branch's pipelines are in the status bar. The list, steps and logs are free; running, re-running and stopping pipelines are Pro (US$1.50 a month, with a 30-day trial).

Get it on JetBrains Marketplace

Atlassian, Bitbucket and Bitbucket Pipelines are trademarks of Atlassian; IntelliJ IDEA is a trademark of JetBrains s.r.o. This page is not affiliated with or endorsed by any of them.

More: Pipelines did not run after a push · Running a custom pipeline with variables · "command not found" · The build passed before and fails now · "This pipeline was paused" (deployments) · Bitbucket Pipelines plugins for IntelliJ IDEA, compared · 日本語