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

"master" value is silently ignored and empty value is set for "Restrict where..." in Tied Label Slicer section

      Configuration Slicer page -> "Tied Label Slicer".

      I move some of my jenkins jobs to a new row and set "master" value on the left.
      I expect these jobs to get this "restricted to run on master" setting.

      actual:
      when I open individual configuration screen for those jobs, they still have "restrict where it can be run" checkbox selected,
      but the label value is empty. there is NO "master" text in it.
      if I go back to Configuration Slicer page -> Tied Label Slicer, I can see those jobs in a separate row with "master" value on the left, which is good.
      but it is simply not shown on individual Job Config pages (when you click "Configure" for a particular job in Jenkins UI).

      note: setting labels other than "master" seems to work fine in my environment.

      also, I have 0 executors available on the "master", which may or may not be relevant to this. I think it's not, but decided to share just in case.

      maybe "master" is considered to be a "default" label and not always shown in some UI pages... but that's weird because I can open "Configure Job" page and type "master" value as the node restriction and it stays there...

          [JENKINS-29547] "master" value is silently ignored and empty value is set for "Restrict where..." in Tied Label Slicer section

          Alex Java created issue -
          Alex Java made changes -
          Description Original: Configuration Slicer page -> "Tied Label Slicer".

          I move some of my jenkins jobs to a new row and set "master" value on the left.
          I expect these jobs to get this "restricted to run on master" setting.

          actual:
          when I open those jobs, they still have "restrict where it can be run" checkbox selected,
          but the label value is empty. there is NO "master" text in it.

          note: setting labels other than "master" seems to work fine in my environment.

          also, I have 0 executors available on the "master", which may or may not be relevant to this. I think it's not, but decided to share just in case.
          New: Configuration Slicer page -> "Tied Label Slicer".

          I move some of my jenkins jobs to a new row and set "master" value on the left.
          I expect these jobs to get this "restricted to run on master" setting.

          actual:
          when I open individual configuration screen for those jobs, they still have "restrict where it can be run" checkbox selected,
          but the label value is empty. there is NO "master" text in it.
          if I go back to Configuration Slicer page -> Tied Label Slicer, I can see those jobs in a separate row with "master" value on the left, which is good.
          but it is simply not shown on individual Job Config pages (when you click "Configure" for a particular job in Jenkins UI).

          note: setting labels other than "master" seems to work fine in my environment.

          also, I have 0 executors available on the "master", which may or may not be relevant to this. I think it's not, but decided to share just in case.

          maybe "master" is considered to be a "default" label and not always shown in some UI pages... but that's weird because I can open "Configure Job" page and type "master" value as the node restriction and it stays there...
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 164425 ] New: JNJira + In-Review [ 181612 ]
          Dirk Heinrichs made changes -
          Priority Original: Minor [ 4 ] New: Major [ 3 ]
          Daniel Beck made changes -
          Remote Link New: This issue links to "PR 1881 (Web Link)" [ 22548 ]

            mdonohue mdonohue
            alskor Alex Java
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: