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

IRC bot fails to build/schedule non-freestyle jobs

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • ircbot-plugin 3.919.v58f265e8ea_cb_
      instant-messaging-plugin 2.772.vb_93c35128ff9

      According to IDEA debugging of BuildCommand.getReply() etc., the getJobProvider().getJobByNameOrDisplayName(jobName) operation and the further called methods (all part of instant-messaging-plugin) do somewhere see a list of items[] which contains all the jobs, legacy/freestyle and pipeline ones. However, it only returns hits of legacy job names, and null's for pipeline names.

          [JENKINS-72591] IRC bot fails to build/schedule non-freestyle jobs

          Jim Klimov created issue -

          Jim Klimov added a comment - - edited

          So, the code looks for AbstractProject items. Pipelines are different...

           

          NOT a low-hanging fruit of a fix: parent class for AbstractProject and WorkflowJob is a Job, but just replacing this in source does not cut it: quite a few core methods and parameterized classes (like AbstractBuild) expect the AbstractProject.

           

          Also, such a brute-force change would break external API of the plugin, since various methods dealing with List<AbstractProject> etc. are public. Not sure if truly consumed - a quick look at ircbot-plugin did not have many hits for AbstractProject ...

          Jim Klimov added a comment - - edited So, the code looks for AbstractProject items. Pipelines are different...   NOT a low-hanging fruit of a fix: parent class for AbstractProject and WorkflowJob is a Job, but just replacing this in source does not cut it: quite a few core methods and parameterized classes (like AbstractBuild) expect the AbstractProject.   Also, such a brute-force change would break external API of the plugin, since various methods dealing with List<AbstractProject> etc. are public. Not sure if truly consumed - a quick look at ircbot-plugin did not have many hits for AbstractProject ...

            kutzi kutzi
            jimklimov Jim Klimov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: