buildkite / buildkite/agent

Pipeline parsing of "pipeline.yml" failed (Expected identifier to start with a letter, got ?)

Open
#1,267 4 comments 0 reactions 0 assignees View on GitHub
bug yaml
Dominant language
Go
Stars
1.1k
Forks
378
Avg merge
2d 6h
Merged PRs (30d)
74

Description

Similar to #584 I'm getting the error in the title trying to compare `$?` in a pipeline command step. Neither of these work regardless of quoting:

```
if [[ "\$?" == "0" ]]; then ...
if [[ "$$?" == "0" ]]; then ...
```

Contributor guide

Open the contributing guide

Research direction

Start by reading the related issue #584 and locating the pipeline parser path for command-step expressions. Reproduce the failure with the two snippets from this issue; done means comparing `$?` with `0` in a pipeline command step no longer produces the identifier parsing error.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, yaml
Domain
ci-cd
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.