Possible to rerun failed jobs when some other jobs in the same stage are still active.

14 views
Skip to first unread message

Ralph Babunga

unread,
Nov 4, 2024, 10:58:04 PMNov 4
to go-cd
Have a pipeline build with concurrent jobs within 1 stage. Sometimes a job within a stage fails and would just need to be rerun to pass, unfortunately I have to wait until each job in the stage has completed before rerunning those failed jobs. Was curious if it was possible to configure GoCD in a way that would allow you to rerun failed jobs even when other jobs in the same stage are still in progress.

Chad Wilson

unread,
Nov 4, 2024, 11:06:20 PMNov 4
to go...@googlegroups.com
Sadly it's not possible to do this within the current GoCD (to be fair, same with GitHub Actions and other similar systems).

The alternative (somewhat special to GoCD given is "proper" multi-pipeline fan-in support) is to remodel your pipelines to have the parallel jobs in a stage instead be parallel pipelines within a VSM which fan-in to a pipeline.

e.g let's say Pipeline P1 has Stage S1 with parallel jobs J11, J12, J13 and S2 is a single job J21 that is done when all three are complete. Instead of

material -> P1S1 (J11, J12, J13) --> P1S2 (J21)

model as

material --> P1S1 (J11). -------> P4S1 (J21)
         \-> P2S1 (J12). -/
         \-> P3S1 (J13). -/

With this setup the stages can be re-run independently when their single job fails.

-Chad

On Tue, Nov 5, 2024 at 11:58 AM Ralph Babunga <tarzi...@gmail.com> wrote:
Have a pipeline build with concurrent jobs within 1 stage. Sometimes a job within a stage fails and would just need to be rerun to pass, unfortunately I have to wait until each job in the stage has completed before rerunning those failed jobs. Was curious if it was possible to configure GoCD in a way that would allow you to rerun failed jobs even when other jobs in the same stage are still in progress.

--
You received this message because you are subscribed to the Google Groups "go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to go-cd+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/go-cd/74aa43e0-9528-4e03-a821-e4be86db1ea9n%40googlegroups.com.

Ashwanth Kumar

unread,
Nov 4, 2024, 11:06:59 PMNov 4
to go...@googlegroups.com
Technically you can only rerun a stage when it had fully failed or passed. During the scenario the stage is still running so it wouldn’t be possible unfortunately. 

Thanks,


Sent from MetroMail


On Tue, 5 Nov 2024 at 9:28 AM, Ralph Babunga <tarzi...@gmail.com> wrote:
Have a pipeline build with concurrent jobs within 1 stage. Sometimes a job within a stage fails and would just need to be rerun to pass, unfortunately I have to wait until each job in the stage has completed before rerunning those failed jobs. Was curious if it was possible to configure GoCD in a way that would allow you to rerun failed jobs even when other jobs in the same stage are still in progress.

--
Reply all
Reply to author
Forward
0 new messages