yLabel.
>>>>>>>
>>>>>>> Here's an example:
>>>>>>>
>>>>>>> def nodes = nodesByLabel label: '!windows'
>>>>>>> nodes = nodes.sort()
>>>>>>>
>>>&g
>>>
>>>>>> def nodes = nodesByLabel label: '!windows'
>>>>>> nodes = nodes.sort()
>>>>>>
>>>>>> Map tasks = [:]
>>>>>>
>>>>>> for (int i = 0; i < nodes.size(); i++) {
>>>>>> def label = nodes[i]
>>>>>>
label.replaceAll('(-jagent)|(-ssh)|(-mwaite)|(.markwaite.net)|(-beemarkwaite)|(-jenkins)',
>>>>> '')
>>>>> tasks[label] = {
>>>>> node(label) {
>>>>> stage(stageName) {
>>>>>
t;>>>
>>>> '')
>>>> tasks[label] = {
>>>> node(label) {
>>>> stage(stageName) {
>>>> if (isUnix()) {
>>>> sh '[ -d /var/lib/git/mwaite ] || (ech
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
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'
>> }
>> }
>>
irectory not found; exit 1)'
> } else {
> bat 'echo git cache check not implemented for Windows'
> }
> }
> }
> }
> }
>
> timeout(time: 3, unit: 'MINUTES') {
>
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:
>
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