Re: Build on all agents

2021-04-14 Thread Mark Waite
yLabel. >>>>>>> >>>>>>> Here's an example: >>>>>>> >>>>>>> def nodes = nodesByLabel label: '!windows' >>>>>>> nodes = nodes.sort() >>>>>>> >>>&g

Re: Build on all agents

2021-04-14 Thread pe...@pjksolutions.com
>>> >>>>>> def nodes = nodesByLabel label: '!windows' >>>>>> nodes = nodes.sort() >>>>>> >>>>>> Map tasks = [:] >>>>>> >>>>>> for (int i = 0; i < nodes.size(); i++) { >>>>>> def label = nodes[i] >>>>>>

Re: Build on all agents

2021-04-12 Thread Mark Waite
label.replaceAll('(-jagent)|(-ssh)|(-mwaite)|(.markwaite.net)|(-beemarkwaite)|(-jenkins)', >>>>> '') >>>>> tasks[label] = { >>>>> node(label) { >>>>> stage(stageName) { >>>>>

Re: Build on all agents

2021-04-12 Thread pe...@pjksolutions.com
t;>>> >>>> '') >>>> tasks[label] = { >>>> node(label) { >>>> stage(stageName) { >>>> if (isUnix()) { >>>> sh '[ -d /var/lib/git/mwaite ] || (ech

Re: Build on all agents

2021-04-12 Thread pe...@pjksolutions.com
stage(stageName) { >>> if (isUnix()) { >>> sh '[ -d /var/lib/git/mwaite ] || (echo >>> /var/lib/git/mwaite directory not found; exit 1)' >>> } else { >>> bat 'echo git cache check not implemented for >>&g

Re: Build on all agents

2021-04-10 Thread Mark Waite
sh '[ -d /var/lib/git/mwaite ] || (echo >> /var/lib/git/mwaite directory not found; exit 1)' >> } else { >> bat 'echo git cache check not implemented for Windows' >> } >> } >>

Re: Build on all agents

2021-04-10 Thread pe...@pjksolutions.com
irectory not found; exit 1)' > } else { > bat 'echo git cache check not implemented for Windows' > } > } > } > } > } > > timeout(time: 3, unit: 'MINUTES') { >

Re: Build on all agents

2021-04-06 Thread Mark Waite
nit: 'MINUTES') { parallel(tasks) } Jenkins multi-configuration jobs can also build on all agents that match a particular label, using either the elastic axis plugin or the node label parameters plugin. Mark Waite On Tue, Apr 6, 2021 at 2:36 PM pe...@pjksolutions.com wrote: >

Build on all agents

2021-04-06 Thread pe...@pjksolutions.com
Hi all, I have one master Jenkins CI server and four slaves is is possible to build a project on all agents simultaneously ? -- 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, sen