1

下の図では、各レベルのジョブを並行して (executor で同時に実行できるように) 実行したいと考えており、1 つの任意のジョブが失敗した場合、問題を修正した後、再び正常に実行したいと考えています (あたかもジョブが実行されたかのように)。失敗しませんでした)。つまり、失敗したジョブが修正後に正常にビルドされた場合、下位レベルのジョブが自動的に開始されるようにしたいということです。

Build Flow Plugin がそれを認識できないことがわかりました。誰かが素晴らしいアイデアを共有できることを願っています。

御時間ありがとうございます。

ここに画像の説明を入力

さらに明確にするために:

レベル x+1 のすべてのジョブの前に、レベル x のすべてのジョブが成功する必要があります。レベル x のジョブが失敗した場合、レベル x+1 のジョブを開始したくありません。問題を修正した後、ジョブを再実行し、それが成功した場合 (およびレベル x の他のすべてのジョブも成功した場合)、レベル x+1 でビルドを開始します。

4

1 に答える 1

0

Referencing your diagram, I'll restate the requirements of your question (to make sure I understand it).

  1. At Level 1, you want all of the jobs to run in parallel (if possible)
  2. At Level 2, you want all of the jobs to run in parallel
  3. At Level 3, you want all of the jobs to run in parallel
  4. Any successful build of a Level 1 job should cause all Level 2 jobs to build
  5. Any successful build of a Level 2 job should cause all Level 3 jobs to build

My answer should work if you do not require "Any failure at Level 1 will prevent all Level 2 jobs from running."

I don't believe this will require any other plugins. It just uses what is built into Jenkins.

  • For each Level 1 job, configure a Post Build action of "Build other projects"
    • The projects to build should be all of your Level 2 jobs. (The list should be comma separated list.)
    • Check "Trigger only if build succeeds"
  • For each Level 2 job, configure a Post Build action of "Build other projects"
    • The projects to build should be all of your Level 3 jobs.
于 2012-05-21T12:57:48.350 に答える