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

Not sending emails if pre-build fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • ssh-plugin
    • None

      We have a ssh pre-build script set up that resets our test data on another box in our Jenkins instance before we then run our tests. However we noticed this morning that the job had failed during the pre-build section. However we did not get the email through from jenkins saying the build had failed. I'm guessing the whole thing crashed out so it never even attempted the email. Here is the traceback we received:

      java.lang.NullPointerException
      at org.jvnet.hudson.plugins.SSHBuildWrapper.executePreBuildScript(SSHBuildWrapper.java:78)
      at org.jvnet.hudson.plugins.SSHBuildWrapper.setUp(SSHBuildWrapper.java:62)
      at hudson.model.Build$BuildExecution.doRun(Build.java:154)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:586)
      at hudson.model.Run.execute(Run.java:1543)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:236)

      Is there a reason why this shouldn't email that it failed?

            Unassigned Unassigned
            jpsimpson JPSimpson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: