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

Filter "possible next executions" with Job-Generators

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Not A Defect
    • Component/s: next-executions-plugin
    • Labels:
      None
    • Environment:
      plugin 1.0.7
      Jenkins 1.567
    • Similar Issues:

      Description

      First of all - thanks for the "possible next executions" widget - this was a really good idea.

      But:
      This widget also shows Job-Generators (see plugin https://wiki.jenkins-ci.org/display/JENKINS/Job+Generator+Plugin)
      These jobs are listed in the next execution widget but they will never be executed by SCM-polls.

      Please provide a filter like:

      if(topLevelItem instanceof AbstractProject && !isGenerator(topLevelItem)){
      ...
      }
      

      where

      private boolean isGenerator(TopLevelItem item){
         String gn = "org.jenkinsci.plugins.jobgenerator.JobGenerator";
         return project.getClass().getQualifiedName().equals(gn)
      }
      

      or something like that.

        Attachments

          Activity

          Hide
          ialbors Ignacio Albors added a comment -

          Hi, Sven!

          Thanks for the feedback.

          As far as I can see, the Job Generator Plugin just creates another type of job; it will have its Triggers the same as a regular Job, is that right? So I think they should appear in the widget if they have defined a TimeTrigger, for example.

          Let me know if I didn't get what the Job Generator Plugin is about.

          Show
          ialbors Ignacio Albors added a comment - Hi, Sven! Thanks for the feedback. As far as I can see, the Job Generator Plugin just creates another type of job; it will have its Triggers the same as a regular Job, is that right? So I think they should appear in the widget if they have defined a TimeTrigger, for example. Let me know if I didn't get what the Job Generator Plugin is about.
          Hide
          ialbors Ignacio Albors added a comment -

          I will close the issue for now. Feel free to reopen it at your will.

          Show
          ialbors Ignacio Albors added a comment - I will close the issue for now. Feel free to reopen it at your will.
          Hide
          zioschild Sven Appenrodt added a comment -

          No - you are right. My configuration was to configure the timeout in the job without SCM-data. After calling the generator by groovy i added scm-url and workingfolders. So it looks like the generator is not running.
          So finally - it is a misconfiguration of my job.

          Thanks for fast supply

          Show
          zioschild Sven Appenrodt added a comment - No - you are right. My configuration was to configure the timeout in the job without SCM-data. After calling the generator by groovy i added scm-url and workingfolders. So it looks like the generator is not running. So finally - it is a misconfiguration of my job. Thanks for fast supply

            People

            Assignee:
            ialbors Ignacio Albors
            Reporter:
            zioschild Sven Appenrodt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: