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

Use same node which has been specified in the "Restrict where this project can be run" field

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Fixed
    • scripttrigger-plugin
    • None
    • rhel 5.5
      64 bits
      Jenkins 1.464

    Description

      Hello All,

      Execute ScriptTrigger using the same slave as was specified in the "Restrict where this project can be run" field

      For instance:

      Restrict where this project can be run: Label Expression: UBUNTU

      [ScriptTrigger] - Poll with a shell or batch script

      Polling started on 14-Jun-2012 07:00:59
      Polling for the job XXX_2.5
      Looking nodes where the poll can be run.
      Looking for a candidate node to run the poll.
      Looking for a polling node with the assigned project label ubuntu.
      Trying to poll on master node.

      Polling on master.
      The expected script execution code is 0
      Evaluating the script:

      Thanks

      Attachments

        Activity

          Hello Gregory,

          I've tried to see the same error using the same environment, but it seems I cannot produce it again, I was confused why it took the master instead a slave. So please, close this ticket, let you know if I see it again

          Thanks

          v2v Victor Martinez added a comment - Hello Gregory, I've tried to see the same error using the same environment, but it seems I cannot produce it again, I was confused why it took the master instead a slave. So please, close this ticket, let you know if I see it again Thanks
          mmrazik Martin Mrazik added a comment -

          I can still see this issue with 0.21:
          ------------------------
          Polling started on Aug 15, 2012 1:55:30 PM
          Polling for the job X
          Looking nodes where the poll can be run.
          Looking for a node to the restricted label generic.
          Can't find any eligible nodes.
          Trying to poll on master node.

          Polling on master.
          The expected script
          [...]
          ------------------------

          Plugin Version: 0.21
          Jenkins Version: 1.424.6
          Java Version: 1.6.0_24 (OpenJDK Runtime Environment (IcedTea6 1.11.1) (6b24-1.11.1-4ubuntu3))
          OS Server side: Ubuntu 12.04 LTS

          The node with "generic" label is a libvirt managed VM and it is online when the polling is happening (its online all the time). Regular jobs are properly executed on it when I restrict them so. Just polling seems to be always executing on master.

          mmrazik Martin Mrazik added a comment - I can still see this issue with 0.21: ------------------------ Polling started on Aug 15, 2012 1:55:30 PM Polling for the job X Looking nodes where the poll can be run. Looking for a node to the restricted label generic. Can't find any eligible nodes. Trying to poll on master node. Polling on master. The expected script [...] ------------------------ Plugin Version: 0.21 Jenkins Version: 1.424.6 Java Version: 1.6.0_24 (OpenJDK Runtime Environment (IcedTea6 1.11.1) (6b24-1.11.1-4ubuntu3)) OS Server side: Ubuntu 12.04 LTS The node with "generic" label is a libvirt managed VM and it is online when the polling is happening (its online all the time). Regular jobs are properly executed on it when I restrict them so. Just polling seems to be always executing on master.
          mmrazik Martin Mrazik added a comment -

          Reopening as per previous comment

          mmrazik Martin Mrazik added a comment - Reopening as per previous comment
          mmrazik Martin Mrazik added a comment -

          Strangely enough I can not reproduce on my "staging" jenkins (the previous one is production jenkins) which is the same version of OS/Plugin/Jenkins/Java. The difference is just set of installed plugins. I'm trying to debug a bit more.

          mmrazik Martin Mrazik added a comment - Strangely enough I can not reproduce on my "staging" jenkins (the previous one is production jenkins) which is the same version of OS/Plugin/Jenkins/Java. The difference is just set of installed plugins. I'm trying to debug a bit more.

          Ok thanks for your last comment.
          I set to Fixed for now. And reopen it you reproduce it.

          gbois Gregory Boissinot added a comment - Ok thanks for your last comment. I set to Fixed for now. And reopen it you reproduce it.

          People

            gbois Gregory Boissinot
            v2v Victor Martinez
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: