Hi,

I don't exactly understand your problem. Please have a look here:
https://www.jenkins.io/blog/2019/11/22/welcome-to-the-matrix/

you very easily can integrate matrix in a declarative pipeline. Insert your 
nodes as an axis of the matrix and add an 'agent' in the stage doing your 
job.

But maybe I missed a point somewhere...


Roland Asmann schrieb am Sonntag, 18. Oktober 2020 um 18:23:48 UTC+2:

> Hey everybody,
>
> I have this job, written as a declarative pipeline, the now needs to be 
> run on 2 nodes instead of just 1. Before, I would use the Matrix-Job for 
> that, but I am not quite sure how to do this in my pipeline...
> I searched around a bit and found some example on how to do it with a 
> scripted pipeline, but I would prefer to stick to the declarative format -- 
> if possible. The reason for that is that my team is just learning about 
> pipelines and have just about mastered declarative. I don't want to throw 
> them in the deep end for scripted yet.
>
> Is this possible in declarative? If so, tips would be helpful.
> If not, at least 1 reply telling me this would also be helpful! ;-)
>
> Thanks,
> Roland
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/5d806b70-3cab-463e-a27f-097daaa3679en%40googlegroups.com.

Reply via email to