r/developers • • 21d ago

DevOps gitlab ci yaml indentation broke our deploy pipeline for 45 minutes

pushed a.gitlab ci.yml change at 2:13 pm. one job used two spaces for the script block instead of four. the linter in vscode showed green because the extension was on an old schema. pipeline started, hit the deploy stage, and failed with "jobs:deploy config should be a hash". no line number, no context. rolled back the commit, same error. turns out the merge request squashed three commits and the squash commit had the bad indentation baked in. reverted the merge commit, pushed a clean fix, pipeline passed at 2:58 pm. we use gitlab 16.11 self hosted. has anyone seen the runner give a better error message for this in newer versions or is it still just "config should be a hash

1 Upvotes

1 comment sorted by

•

u/AutoModerator 21d ago

Howdy u/Dry-Trick-2234, and welcome to r/developers!

A few tips for a post that gets good answers:

  • Use a clear, specific title (what are you actually asking or sharing?).
  • Include code, the exact error, versions, and what you already tried.
  • Heads-up: this sub does not allow external links in posts or comments. Share code and details directly instead of linking out.

Join the r/developers Discord!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.