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

IRC Plugin bot does not see the Folder (CloudBees Folders Plugin) jobs

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Jenkins: 1.626
      IRC Plugin: 2.26
      CloudBees Folders Plugin: 4.9

      Hello.
      I have Jenkins 1.626 installed with CloudBees Folders Plugin. So it allows me to structurize all the jobs in a folder way. I have IRC Plugin installed. And when I write a command in IRC chat to the bot:

      !jenkins jobs

      It lists only the root jobs. And it doesn't list jobs that are created inside folders. If I try to build a job that are located under a folder - it schedules a build.

      So it is clearly "display" issue.

        Attachments

          Issue Links

            Activity

            Hide
            jimklimov Jim Klimov added a comment -

            This month new versions of ircbot and instant-messaging-plugin were released, which in particular added awareness about pipeline jobs to the "queue" and "currentlyBuilding" commands, and essence the Java-side change for the plugin code was that the inheritance tree of classes was different so new `import` clauses to add awareness and `instanceof` calls to match a job type were the key to list e.g. pipeline jobs and not only the legacy freestyle ones.

            I did not use the folder plugin yet so can't say if its classes are part of the newly added tree (can you please check it out?), or if a similar and relatively simple change has to be made in a subsequent release.

            Also, by now only those two commands were changed, so the issue of adding such support to "jobs" (or other mass-management commands, for that matter) still stands indeed. And a counter of output hits too, and a regex filter, like in these two commands Maybe some refactoring is due to share such code...

            Show
            jimklimov Jim Klimov added a comment - This month new versions of ircbot and instant-messaging-plugin were released, which in particular added awareness about pipeline jobs to the "queue" and "currentlyBuilding" commands, and essence the Java-side change for the plugin code was that the inheritance tree of classes was different so new `import` clauses to add awareness and `instanceof` calls to match a job type were the key to list e.g. pipeline jobs and not only the legacy freestyle ones. I did not use the folder plugin yet so can't say if its classes are part of the newly added tree (can you please check it out?), or if a similar and relatively simple change has to be made in a subsequent release. Also, by now only those two commands were changed, so the issue of adding such support to "jobs" (or other mass-management commands, for that matter) still stands indeed. And a counter of output hits too, and a regex filter, like in these two commands Maybe some refactoring is due to share such code...
            Hide
            jimklimov Jim Klimov added a comment -

            Also, with pipelines (MultiBranch jobs, with configs generated for many branches and PRs across many repos in several organizations our local Jenkins master tracks), a full "jobs" listing for us would be impractical at several thousand lines long (and throttled IIRC to 0.5sec per line posting to an IRC server to avoid flood controls killing the session) so it was not a priority for me to address in our deployment.

            Show
            jimklimov Jim Klimov added a comment - Also, with pipelines (MultiBranch jobs, with configs generated for many branches and PRs across many repos in several organizations our local Jenkins master tracks), a full "jobs" listing for us would be impractical at several thousand lines long (and throttled IIRC to 0.5sec per line posting to an IRC server to avoid flood controls killing the session) so it was not a priority for me to address in our deployment.

              People

              • Assignee:
                kutzi kutzi
                Reporter:
                svscorp Ilia Shakitko
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: