You should be able to use the groovy plugin to generate a configuration you
require based on some basic looping.

https://github.com/gocd-contrib/gocd-groovy-dsl-config-plugin.

There's an example that you may find useful:
https://github.com/gocd-contrib/gocd-groovy-dsl-config-plugin/blob/master/example/src/main/groovy/build_matrix/build.gocd.groovy


- Ketan



On Tue, Nov 24, 2020 at 9:49 PM Joel Bodenmann <tect...@gmail.com> wrote:

> Thank you for pointing me towards resources. That's certainly something I
> need/want.
>
> Is there a way of automatically generating the individual platform +
> compiler jobs in my pipeline "build" stage? I'd like a solution where I
> don't have to manually create/define a job for each Platform + Compiler
> option.
>
> On Tuesday, November 24, 2020 at 5:00:06 PM UTC+1 ketanpad...@gmail.com
> wrote:
>
>> With GoCD, you'd typically configure a pipeline with several jobs which
>> run across different gocd agents and use different combinations of OSes and
>> compilers of your choice. This document talks about some concepts
>> <https://docs.gocd.org/current/introduction/concepts_in_go.html> behind
>> gocd — you'd want to look at the resources section
>> <https://docs.gocd.org/current/introduction/concepts_in_go.html#resources>
>> understand this better.
>>
>> - Ketan
>>
>>
>>
>> On Tue, Nov 24, 2020 at 8:57 PM Joel Bodenmann <tec...@gmail.com> wrote:
>>
>>> Hello folks,
>>>
>>> Currently I use Jenkins for CD. It has been quite pain to setup and
>>> continues to be a pain to maintain. I started looking into GoCD as an
>>> alternative with the intend of keeping Jenkins for CI and using GoCD for CD.
>>>
>>> I managed to get GoCD up and running without any issues what so ever -
>>> thanks GoCD developers!
>>>
>>> My question: What is the intended/preferred/recommended way to implement
>>> multi-platform and multi-compiler pipelines/builds? In jenkins I use
>>> declarative pipelines with the matrix support to define a matrix (table) of
>>> possible platform & compiler combinations.
>>>
>>> How does one achieve this behavior with GoCD? I'd appreciate it if
>>> somebody could tell me which techniques/plugins/methodologies to use.
>>>
>>> To give this some context: I have about 10 different projects, each of
>>> which needs to be compiled on Linux, FreeBSD and Windows, with builds for
>>> GCC and Clang on each platform.
>>>
>>> --
>>> 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 on the web visit
>>> https://groups.google.com/d/msgid/go-cd/0f0a9b63-1814-4d6f-afb3-a9904b96c2afn%40googlegroups.com
>>> <https://groups.google.com/d/msgid/go-cd/0f0a9b63-1814-4d6f-afb3-a9904b96c2afn%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/cbc3564a-0796-4d41-8e24-2de5b3a8df37n%40googlegroups.com
> <https://groups.google.com/d/msgid/go-cd/cbc3564a-0796-4d41-8e24-2de5b3a8df37n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAMUPJd5bfGgf0RFbFD5t0uCGOeAaaiRVRDXau30aC19KDL5Ugg%40mail.gmail.com.

Reply via email to