Declarative Pipeline runs gracefully despite null label in agent block

This issue is archived. You can view it, but you can't modify it. Learn more

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

       

            Assignee:
            Unassigned
            Reporter:
            Harvy
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: