Re: DSL parallel stage from dynamic list using pure DSL instead of scripted

2021-07-16 Thread Ivan Fernandez Calvo
There is an implementation on the declarative 
pipeline https://www.jenkins.io/doc/book/pipeline/syntax/#declarative-matrix 
it has some limitations like the amount of generated code that sometimes 
you have to extract the code to functions, and it does not allow to grab 
axis from variables.
To avoid those limitation we implemented something similar in our shared 
pipeline library

https://github.com/elastic/apm-pipeline-library/blob/master/vars/matrix.txt
https://github.com/elastic/apm-pipeline-library/blob/master/vars/matrix.groovy
https://github.com/elastic/apm-pipeline-library/blob/master/vars/axis.groovy

El viernes, 16 de julio de 2021 a las 12:17:39 UTC+2, vineeth...@gmail.com 
escribió:

> Hi,
>
> I am trying to create a jenkins pipeline that can run parallel stages 
> based on a dynamic list. Went through doc 
> https://www.jenkins.io/doc/book/pipeline/syntax/#parallel but could not 
> find a way to do the parallel stages based on a dynamic list. I found ways 
> to achieve the same by using scripted pipelines (
> https://www.jenkins.io/doc/pipeline/examples/#parallel-from-list), but 
> was wondering if there is a way to do that with pure DSL. 
>
> Thanks
>
> Vineeth
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/622c4165-2e26-46d9-84b9-f2118b8b3c73n%40googlegroups.com.


DSL parallel stage from dynamic list using pure DSL instead of scripted

2021-07-16 Thread Vineeth Thampi
Hi,

I am trying to create a jenkins pipeline that can run parallel stages based 
on a dynamic list. Went through doc 
https://www.jenkins.io/doc/book/pipeline/syntax/#parallel but could not 
find a way to do the parallel stages based on a dynamic list. I found ways 
to achieve the same by using scripted pipelines (
https://www.jenkins.io/doc/pipeline/examples/#parallel-from-list), but was 
wondering if there is a way to do that with pure DSL. 

Thanks

Vineeth

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/808f6f63-f7b8-45e5-a5f7-a2fbd7cad048n%40googlegroups.com.