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

Declarative Pipeline runs gracefully despite null label in agent block

XMLWordPrintable

      Description:

      When the label is defined in the agent block with `null`, the pipeline continues to run successfully using agents or nodes for another defined label. 

      Expected behaviour:

      Pipeline should fail throwing an exception when null label value is used.

      Example

      //..
      pipeline {
          agent {
              label null
          } 
      //..
      }

       

      Environment:

      Jenkins 2.426.3

       

            Unassigned Unassigned
            harvynbb Harvy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: