Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

woodpecker-pipelines

БесплатноБез исполняемых скриптовНе проверен

Patterns and hard-won gotchas for designing, debugging, and writing Woodpecker CI pipeline files. Use when authoring or editing `.woodpecker.yml` /…

fred-drakeот fred-drake★ 28 звёзд на GitHub

Об этом скилле

Woodpecker pipelines

File layout: single-file vs multi-file is exclusive

A repo can have either .woodpecker.yml at the root, or a .woodpecker/ directory containing one or more *.yml files. The two modes are mutually exclusive at the server level: as soon as .woodpecker/ exists with any .yml files, the single-file .woodpecker.yml is ignored even if still present. To migrate from one mode to the other, do it in a single commit (e.g. git mv .woodpecker.yml .woodpecker/ci.yml) so there is never a window where one is silently being read.

Multi-workflow trigger semantics

In multi-file mode, every workflow whose when: matches the trigger runs in parallel. There is no concept of a "primary" workflow. To make a manual "Run Pipeline" click trigger only one workflow (e.g., a TestFlight submission, not a regular CI run), include event: manual in the target workflow's when: and omit manual from every other workflow's when:.

Failure mode: leaving event: [push, pull_request, manual] on a CI workflow and event: manual on a release workflow means a single Run-Pipeline click fires both in parallel — likely shipping accidentally.

# .woodpecker/ci.yml — push + PR only
when:
  - event: [push, pull_request]

# .woodpecker/release.yml — manual only
when:
  - event: manual

Variable interpolation in commands: is a minefield

Woodpecker pre-processes every commands: string through its own templating engine before bash ever sees it. The templater inherits Drone's ${build.*} / ${commit.*} etc. namespace and is finicky about syntax. Empirically the failure modes vary by form:

In your YAML What Woodpecker does
${VAR} Substitutes to the matching template var, or to empty string if the name is unknown. No error.
$VAR (bare, no braces) Sometimes passes through (e.g., $HOME, $2 in awk '{print $2}'); sometimes errors with "unable to parse variable name" and rejects the entire workflow. The split is not predictable from the YAML alone.
$${VAR} Errors with "missing closing brace" and rejects the workflow. Despite $$ being documented as the escape, combining it with {...} doesn't pass through cleanly.

Worst-case symptom: in multi-pipeline layouts, a templating rejection in one workflow blocks every other workflow in the repo from running for that trigger. So a botched ${VAR} in a release workflow can stop the regular CI dead, with no obvious connection.

Rule of thumb when you need to use a value inside commands::

  1. If the value is static, write it literally. No interpolation, no surprises.
  2. If the value comes from secrets or repo-level config, use the step's environment: map. Woodpecker resolves it at scheduling time, before the templater runs.
    environment:
      ASC_KEY_ID:
        from_secret: asc_key_id
      PROFILE_NAME: "Thrifter App Store Distribution"
    
    Then bash sees $ASC_KEY_ID as a normal env var. No YAML-side $.
  3. If the value comes from runtime computation (file contents, tool output), keep it inside $(...) command substitution. The templater does not try to parse inside command substitution. The result lives in a bash-local variable that you reference with bare $name inside the same | block — and do not put that bash variable inside another double-quoted YAML string that the templater will scan.
  4. If you absolutely must interpolate a runtime value into a string Woodpecker scans, write the string to a file and pass the file (git commit -F /tmp/msg, xcodebuild -exportOptionsPlist /tmp/opts.plist, etc.).

woodpecker-cli lint does not catch any of these templating issues — it accepts forms the server later rejects. Treat lint as syntax-only.

Privileged plugins need two gates open

Plugins that run with privileged: true (e.g. woodpeckerci/plugin-docker-buildx for image building) require both gates to pass:

  1. Agent allowlist — the agent's WOODPECKER_PLUGINS_PRIVILEGED env var must include the plugin image's repo name (without tag). Configured server-side; one agent, one allowlist.
  2. Repo trust level — admin must flip the repo's trust flags in the Woodpecker UI: repo Settings → Project → Trust. In Woodpecker v3 the toggles are split into Network, Volumes, and Security — privileged: true is gated by Security.

If only the agent gate is open, you'll see:

linter: steps.<step-name>: Insufficient trust level to use privileged mode

This is a parse-time rejection — the pipeline ends up in error status with no step logs. The error is visible in the UI's Errors tab next to the failed pipeline, but woodpecker-cli pipeline show won't reveal it.

The trust level is operational state in Woodpecker's database, not anything declarable from the agent/server Nix config. New repos are untrusted by default, so this gate has to be flipped manually the first time a repo wants to

Полный SKILL.md на GitHub

Установить woodpecker-pipelines в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл woodpecker-pipelines?

Patterns and hard-won gotchas for designing, debugging, and writing Woodpecker CI pipeline files. Use when authoring or editing `.woodpecker.yml` / `.woodpecker/*.yml`, when a pipeline shows `error` status with no step logs, when shell variables in `commands:` blocks are not interpolating as expected, when splitting between single-file and multi-pipeline directory layouts, or when running iOS signing / archive flows on a non-interactive Mac agent. Companion to the `woodpecker-cli` skill (which is the CLI reference) — this one is the workflow-design + debugging reference.

Как установить скилл woodpecker-pipelines?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл woodpecker-pipelines запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить woodpecker-pipelines с