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

Option to exclude off-line Slaves in "Individual Slaves"

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • matrix-project-plugin
    • None
    • All

      I would like to use a Matrix Job to release software to Jenkins Master and Slaves. Unfortunately, if any slave is off-line the job never finishes which means it will not run again (at the next release) without manual intervention. I would either like an "on-line slaves only" option, or for something like this to work as a combination filter:

      Hudson.instance.getComputer(label == "master"?"":label).getNode().getChannel() != null

      The above scriptlet works fine in scriptler, but I cannot seem to get it running (with or without an import) in the combination filter. The combination box will not properly process "import" and without the import "Hudson" is undefined.

          [JENKINS-21602] Option to exclude off-line Slaves in "Individual Slaves"

          Frank Merrow added a comment - - edited

          I finally beat this into submission with the existing options, but it isn't for the faint of heart. If there is a place to post "Matrix Recipes" like this (I looked but never found one), please let me know where and I'll be happy to add this one to it. This should not be this hard . . . plus I am left with a large n**2 run matrix that only has one item in each column and row . . . not terrible, but not as convenient as it could be either.

          Frank Merrow added a comment - - edited I finally beat this into submission with the existing options, but it isn't for the faint of heart. If there is a place to post "Matrix Recipes" like this (I looked but never found one), please let me know where and I'll be happy to add this one to it. This should not be this hard . . . plus I am left with a large n**2 run matrix that only has one item in each column and row . . . not terrible, but not as convenient as it could be either.

          Oleg Nenashev added a comment -

          Seems to be a case for the NodeLabel plugin

          Oleg Nenashev added a comment - Seems to be a case for the NodeLabel plugin

            Unassigned Unassigned
            fmerrow Frank Merrow
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: