I'm confused by this statement in the step conditional documentation

Aperta
#3,177 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
56/100
Tipo di issue
Documentazione
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
yaml
Ambito
documentation

Direzione di ricerca

Read pages/pipelines/configure/conditionals.md around lines 63–64 and check how the documented claim matches the example in the issue. Clarify whether a step with if: false still runs its plugin, using a reproducible example or authoritative behavior as evidence; done when the documentation clearly explains the observed behavior and how to conditionally run plugins.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

In the step conditional documentation, one can find this statement.

🚧 Plugin execution and conditionals
Step-level if conditions only prevent commands from running but they do not affect plugins. Plugins run during the job lifecycle, before the conditional is evaluated. To conditionally run plugins, use either group steps or dynamic pipeline uploads.

https://github.com/buildkite/docs/blob/ef2ed942e9531fbfaa396afda56c883715554d31/pages/pipelines/configure/conditionals.md#L63-L64

My agent asserts that a step defined like this:

steps:
  - command: 'echo not run'
    if: false
    plugins:
      - ecr#v2.12.0: ~

… will result in a job that runs the plugin component (ECR login) but not the command component (echo) of this step.

I have never seen that happen in practice.

Lingua principale
Ruby
Stelle
60
Fork
312
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di buildkite/docs

Tutte le issue di buildkite/docs

Issue simili

Altre issue su Ruby

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.