Semantics of "Label_1 || Label_2"

11 views
Skip to first unread message

Dirk Heinrichs

unread,
Aug 3, 2023, 10:03:29 AM8/3/23
to jenkins...@googlegroups.com
Hi,

I wonder how the label expression "Label_1 || Label_2" exactly works. Is it equivalent to the following Groovy label assignment script or does it work differently?

import jenkins.model.Jenkins
return (Jenkins.instance.getLabel('Label_1').getIdleExecutors() > 0 ? 'Label_1' : 'Label_2')

Thanks...

Dirk
-- 
Dirk Heinrichs
Senior Systems Engineer, Delivery Pipeline
OpenText ™ Discovery | Recommind
Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
Vertretungsberechtigte Geschäftsführer Gordon Davies, Madhu Ranganathan, 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.
Reply all
Reply to author
Forward
0 new messages