Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-73852

Jenkins label expression broken with lts 2.462.2

XMLWordPrintable

      After upgrade LTS from 2.452.3 to 2.462.3 the agent label expression failed.

      I suspect this is Jenkins issue itself as it impacts 2 plugins that used to work with label expression.

      In this test environment, with ec2 plugin https://plugins.jenkins.io/ec2/ 

      x64 agent has labels defined 'large linux' that mean either label 'large' or 'linux' should work for this agent as space was used to separate labels and with Usage set to 'use this node as much as possible'

      Arm agent has label defined as 'arm graviton linux-arm' with Usage seto 'Only build jobs with label expressions matching this node. 

      After the LTS update, the pipeline with 

      'agent any' continue to work as it can match the x64 agent.

      However, any of the below failed.

          agent { label 'linux || large' }

          agent { label 'linux' }

          agent { label 'large' }

          agent { label 'arm' }

      or any other combination. However, below exact matches work 

          agent { label 'linux large'}

          agent { label 'arm graviton linux-arm' }

       

      This also impact https://plugins.jenkins.io/custom-tools-plugin/

      as we use label expression either 'linux || large' or 'linux-arm' to determine package to download dynamically. I listed the || specifically as this plugin accept label expression directly

       

       

       

       

            thoulen FABRIZIO MANFREDI
            chengwc Jack
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: