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

Java stack exception shown inspite of installing supress stack trace plugin

    XMLWordPrintable

Details

    Description

      In execute Shell command I have a groovy command typed in:
      def foo(hudson.model.Run run) {}
      which throws an exception:
      cannot find the file specified
      at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047)
      at hudson.Proc$LocalProc.<init>(Proc.java:244)
      at hudson.Proc$LocalProc.<init>(Proc.java:216)
      at hudson.Launcher$LocalLauncher.launch(Launcher.java:803)
      at hudson.Launcher$ProcStarter.start(Launcher.java:381)
      at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:97)
      at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:66)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
      at hudson.model.Build$BuildExecution.build(Build.java:199)
      at hudson.model.Build$BuildExecution.doRun(Build.java:160)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:533)
      at hudson.model.Run.execute(Run.java:1745)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:89)
      at hudson.model.Executor.run(Executor.java:240)
      Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
      at java.lang.ProcessImpl.create(Native Method)
      at java.lang.ProcessImpl.<init>(ProcessImpl.java:385)
      at java.lang.ProcessImpl.start(ProcessImpl.java:136)
      at java.lang.ProcessBuilder.start(ProcessBuilder.java:1028)
      ... 15 more
      Build step 'Execute shell'

      Groovy Version is :2.4.7
      My expectation would be that no stack trace is shown as the supress stack trace plugin is installed.

      Attachments

        Activity

          There are no comments yet on this issue.

          People

            Unassigned Unassigned
            maitreymishra23 Maitrey Mishra
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: