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

NPE when xshell 0.9 read old configuration files without regexToKill tag

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: xshell-plugin
    • Labels:
      None
    • Environment:
      x86_64 RHEL6.2
    • Similar Issues:

      Description

      I'm using xshell plugin on my Jenkins server for a while, so the configuration is old. When upgrade xshell to the latest version, the job will run into NPE, like this:

      08:55:38 FATAL: null
      08:55:38 java.lang.NullPointerException
      08:55:38 at java.util.regex.Pattern.<init>(Pattern.java:1336)
      08:55:38 at java.util.regex.Pattern.compile(Pattern.java:1022)
      08:55:38 at hudson.plugins.xshell.XShellBuilder.perform(XShellBuilder.java:122)
      08:55:38 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      08:55:38 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:785)
      08:55:38 at hudson.model.Build$BuildExecution.build(Build.java:199)
      08:55:38 at hudson.model.Build$BuildExecution.doRun(Build.java:160)
      08:55:38 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:566)
      08:55:38 at hudson.model.Run.execute(Run.java:1677)
      08:55:38 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      08:55:38 at hudson.model.ResourceController.execute(ResourceController.java:88)
      08:55:38 at hudson.model.Executor.run(Executor.java:230)

      I guess this is caused by the missing xml tag "regexToKill" in old configuration files, the plugin should handle the old configurations more gracefully, but not throwing NEP.

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            recyard j c
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: