Does GoCD support parallel builds?

110 views
Skip to first unread message

Michael Baldry

unread,
Aug 29, 2017, 5:44:32 AM8/29/17
to go-cd
And by this I mean, I mean something similar to CircleCI, where you can say a project has 4 agents and then it runs each one with an ENV variable set to say what agent number it is and you can split your tests by the number, to run a single test suite in a quarter of the time (in theory).

If not, is there another way to achieve this goal?

Many thanks!

Ketan Padegaonkar

unread,
Aug 29, 2017, 5:50:05 AM8/29/17
to go...@googlegroups.com
You can specify your jobs to run on multiple agents. The build will run with 2 additional environment variables GO_JOB_RUN_INDEX and GO_JOB_RUN_COUNT to indicate the number of agents, and the index of the current agent. You may use these variables to partition your tests as you see fit.

For reference, the GoCD team uses this code to partition tests across several agents.

--
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.
For more options, visit https://groups.google.com/d/optout.

Michael Baldry

unread,
Aug 29, 2017, 6:00:18 AM8/29/17
to go-cd
Oh awesome. I didn't spot that in any of the documentation but sounds like it works exactly the same as. Thank you
Reply all
Reply to author
Forward
0 new messages