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

Job generator deleting last generated job when slecting to delet any perticular job.

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Hi,
      There is weird behavior from job generator plugin. Since we can delete the job via job generator plugin.
      While selecting delete option to delete any perticular old job, it is deleting previously created job instead of deleting specific job.

        Attachments

          Activity

          Hide
          kerrhome Shannon Kerr added a comment -

          I reproduced this.

          Steps:

          Generate project foo
          Generate project bar
          Use job generator proj to delete project foo and it says deleted project bar even though it shows the parameter is in fact "foo".
          If you try to delete the same project again, you get an error:

          Building on master in workspace /var/lib/jenkins/jobs/Gen WS Branch Job/workspace@4
          FATAL: null
          java.lang.NullPointerException
          at org.jenkinsci.plugins.jobgenerator.GeneratorRun$GeneratorImpl.deleteJob(GeneratorRun.java:688)
          at org.jenkinsci.plugins.jobgenerator.GeneratorRun$GeneratorImpl.deleteJobs(GeneratorRun.java:649)
          at org.jenkinsci.plugins.jobgenerator.GeneratorRun$GeneratorImpl.doRun(GeneratorRun.java:305)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:536)
          at hudson.model.Run.execute(Run.java:1738)
          at org.jenkinsci.plugins.jobgenerator.GeneratorRun.run(GeneratorRun.java:284)
          at hudson.model.ResourceController.execute(ResourceController.java:98)
          at hudson.model.Executor.run(Executor.java:381)

          Jenkins 1.609.3

          Show
          kerrhome Shannon Kerr added a comment - I reproduced this. Steps: Generate project foo Generate project bar Use job generator proj to delete project foo and it says deleted project bar even though it shows the parameter is in fact "foo". If you try to delete the same project again, you get an error: Building on master in workspace /var/lib/jenkins/jobs/Gen WS Branch Job/workspace@4 FATAL: null java.lang.NullPointerException at org.jenkinsci.plugins.jobgenerator.GeneratorRun$GeneratorImpl.deleteJob(GeneratorRun.java:688) at org.jenkinsci.plugins.jobgenerator.GeneratorRun$GeneratorImpl.deleteJobs(GeneratorRun.java:649) at org.jenkinsci.plugins.jobgenerator.GeneratorRun$GeneratorImpl.doRun(GeneratorRun.java:305) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:536) at hudson.model.Run.execute(Run.java:1738) at org.jenkinsci.plugins.jobgenerator.GeneratorRun.run(GeneratorRun.java:284) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:381) Jenkins 1.609.3

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            vishal_vsh1 vishal sahasrabuddhe
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: