Using Groovy Label Assignment plugin to define a fallback label

6 views
Skip to first unread message

Dirk Heinrichs

unread,
Jan 3, 2019, 5:34:09 AM1/3/19
to jenkins...@googlegroups.com

Hi,

 

we just got some new build nodes which are faster than the others. We want to assign certain jobs to these nodes via label, but those jobs should not be put to wait when those nodes are busy otherwise. So I thought I'd use the Groovy Label Assignment Plugin to achieve this. However, the documentation for this plugin is quite poor. Could anybody point me into the right direction as to how to achieve the following:

 

IF (node with label "FastNode" has free executors) THEN

  assign label "FastNode"

ELSE

  assign label "OldNode"

ENDIF

 

Thanks a lot...

 

                Dirk

 

Dirk Heinrichs

Senior Systems Engineer, Delivery Pipeline

OpenText ™ Discovery | Recommind

Phone: +49 2226 15966 18

Email: dhei...@opentext.com

Website: www.recommind.de

Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach

Vertretungsberechtigte Geschäftsführer John Marshall Doolittle, Gordon Davies, Christian Waida, Registergericht Amtsgericht Bonn, Registernummer HRB 10646

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail sind nicht gestattet.

 

Dirk Heinrichs

unread,
Jan 7, 2019, 1:36:17 AM1/7/19
to jenkins...@googlegroups.com

From: jenkins...@googlegroups.com <jenkins...@googlegroups.com> On Behalf Of Dirk Heinrichs

> we just got some new build nodes which are faster than the others. We want to assign certain jobs

> to these nodes via label, but those jobs should not be put to wait when those nodes are busy otherwise.

> So I thought I'd use the Groovy Label Assignment Plugin to achieve this. However, the documentation

> for this plugin is quite poor. Could anybody point me into the right direction as to how to achieve the following:

>

> IF (node with label "FastNode" has free executors) THEN

>   assign label "FastNode"

> ELSE

>   assign label "OldNode"

> ENDIF

 

No idea, anyone?

 

Bye...

 

                Dirk

--
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-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/YTOPR01MB06194EFF724FE2F8D914BF91AA8D0%40YTOPR01MB0619.CANPRD01.PROD.OUTLOOK.COM.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages