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:

To watch pipelines next to the file you edit: Pipeline Inbox for Bitbucket Pipelines, a plugin for JetBrains IDEs, sits next to the editor that checks the file, shows the failed step and the end of its log or the reason Bitbucket gives, and puts your current branch's pipelines in the status bar.

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) · "authorization denied by plugin pipelines" (Docker) · "Cannot connect to the Docker daemon" · "Host key verification failed" (SSH) · A variable is empty · Test results not showing · "Not authorized to perform sts:AssumeRoleWithWebIdentity" (OIDC to AWS) · "Connection refused" to a service (MySQL, PostgreSQL, Redis) · "Container 'build' failed to pull image" · The scheduled pipeline did not run · Git commands that fail in a shallow clone (origin/main, git describe) · Git LFS files that arrive as pointers, and LFS pushes from a step · A step skipped by condition: changesets (includePaths) · Parallel steps that keep running after one fails (fail-fast) · Bitbucket Pipelines plugins for IntelliJ IDEA, compared · 日本語