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

    Details

    • Similar Issues:

      Description

      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...

        Attachments

          Issue Links

            Activity

            Hide
            mdonohue mdonohue added a comment -

            And here is the pull request: https://github.com/jenkinsci/jenkins/pull/1881

            I'm still working on getting it accepted.

            Show
            mdonohue mdonohue added a comment - And here is the pull request: https://github.com/jenkinsci/jenkins/pull/1881 I'm still working on getting it accepted.
            Hide
            mdonohue mdonohue added a comment -

            I don't know how to get any more attention for this one. I just added a comment to the pull request.

            Show
            mdonohue mdonohue added a comment - I don't know how to get any more attention for this one. I just added a comment to the pull request.
            Hide
            danielbeck Daniel Beck added a comment -

            mdonohue With ~550 PRs this year so far, the time of the handful of people able to review PRs is stretched thin.

            Pinging people often helps (place an at character before their GitHub user name, e.g. @jtnord, not jtnord), as does having tests that show your change is safe (if it's not obvious).

            Show
            danielbeck Daniel Beck added a comment - mdonohue With ~550 PRs this year so far, the time of the handful of people able to review PRs is stretched thin. Pinging people often helps (place an at character before their GitHub user name, e.g. @jtnord , not jtnord ), as does having tests that show your change is safe (if it's not obvious).
            Hide
            jcg44 JC G added a comment -

            Hi,

            Can someone tell me whether a fix is available to avoid this behaviour, as I use a Jenkins 1.580 ?

            The Label Expression parameter is just set to null for jobs I move to the master label, but when launched, they run on the master, that's exactly what I want.

            How can I be sure it will work like that any time ?

            Can I consider this is just a matter of display ?

             

            Thanks in advance

            Show
            jcg44 JC G added a comment - Hi, Can someone tell me whether a fix is available to avoid this behaviour, as I use a Jenkins 1.580 ? The Label Expression parameter is just set to null for jobs I move to the master label, but when launched, they run on the master, that's exactly what I want. How can I be sure it will work like that any time ? Can I consider this is just a matter of display ?   Thanks in advance
            Hide
            dhs Dirk Heinrichs added a comment - - edited

            Can this be fixed, please? I don't understand why the label field being "null" means "master". This is highly confusing. Just write "master" into it. This is especially true since the help of the text input field states (under Notes): "An empty expression will always evaluate to true, matching all agents." and then explicitely lists master under Examples.

            Show
            dhs Dirk Heinrichs added a comment - - edited Can this be fixed, please? I don't understand why the label field being "null" means "master". This is highly confusing. Just write "master" into it. This is especially true since the help of the text input field states (under Notes ): "An empty expression will always evaluate to true , matching all agents." and then explicitely lists master under Examples .

              People

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

                Dates

                • Created:
                  Updated: