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

Jenkins 1.408 doesn't execute build, when it is a shell script, but claims to be successful

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • core
    • None
    • ubuntu 10.04

      When I create a very simple project which executes a shell script, the job finishes quite fast, claims to be successful, but the script hasn't been executed.

      After turning on the logging the following appears:

      FINE: testproject #3 : result is set to SUCCESS
      java.lang.Exception
      at hudson.model.Run.setResult(Run.java:334)
      at hudson.model.Run.run(Run.java:1362)
      at hudson.matrix.MatrixBuild.run(MatrixBuild.java:152)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:145)
      at hudson.model.OneOffExecutor.run(OneOffExecutor.java:66)

      I had a quick look at the source code and there are multiple things

      • for some reason the result is null
      • when an exception is thrown the build shouldn't be successful
      • when the line 334 (LOGGER.log(FINE, toString()+" : result is set to "+r,new Exception()); ) is executed it appends a null at the end of the log message

            Unassigned Unassigned
            fabokzs Zsolt Fabok
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: