Running stages in parallel with Jenkins workflow / pipeline

前端 未结 5 613
渐次进展
渐次进展 2020-12-04 15:46

Please note: the question is based on the old, now called \"scripted\" pipeline format. When using \"declarative pipelines\", parallel blocks

5条回答
  •  不思量自难忘°
    2020-12-04 16:01

    You may not place the deprecated non-block-scoped stage (as in the original question) inside parallel.

    As of JENKINS-26107, stage takes a block argument. You may put parallel inside stage or stage inside parallel or stage inside stage etc. However visualizations of the build are not guaranteed to support all nestings; in particular

    • The built-in Pipeline Steps (a “tree table” listing every step run by the build) shows arbitrary stage nesting.
    • The Pipeline Stage View plugin will currently only display a linear list of stages, in the order they started, regardless of nesting structure.
    • Blue Ocean will display top-level stages, plus parallel branches inside a top-level stage, but currently no more.

    JENKINS-27394, if implemented, would display arbitrarily nested stages.

提交回复
热议问题