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

NPE on attempt to run job with no Sonar execution configured

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      AR: When plugin is run on job with no Sonar execution configured the next exception occurs (see below).
      ER: Build should be marked as failed; human-readable error message should be present instead of exception stacktrace.

      at java.io.FileInputStream.open(Native Method)
      at java.io.FileInputStream.<init>(FileInputStream.java:138)
      at hudson.FilePath.read(FilePath.java:1738)
      at hudson.FilePath.readToString(FilePath.java:1767)
      at org.jenkinsci.plugins.sonargerrit.SonarToGerritBuilder.perform(SonarToGerritBuilder.java:137)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
      at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.build(MavenModuleSetBuild.java:909)
      at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:860)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:533)
      at hudson.model.Run.execute(Run.java:1745)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529)
      at hudson.model.ResourceController.execute(ResourceController.java:89)
      at hudson.model.Executor.run(Executor.java:240)

        Attachments

          Activity

          aquarellian Tatiana Didik created issue -
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Tatiana Didik
          Path:
          src/main/java/org/jenkinsci/plugins/sonargerrit/SonarToGerritBuilder.java
          src/main/java/org/jenkinsci/plugins/sonargerrit/util/Localization.java
          src/main/resources/messages.properties
          http://jenkins-ci.org/commit/sonar-gerrit-plugin/829d233b0b737a91fd5c305384e1410d3b5ed88c
          Log:
          JENKINS-30932, JENKINS-30933

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Tatiana Didik Path: src/main/java/org/jenkinsci/plugins/sonargerrit/SonarToGerritBuilder.java src/main/java/org/jenkinsci/plugins/sonargerrit/util/Localization.java src/main/resources/messages.properties http://jenkins-ci.org/commit/sonar-gerrit-plugin/829d233b0b737a91fd5c305384e1410d3b5ed88c Log: JENKINS-30932 , JENKINS-30933
          aquarellian Tatiana Didik made changes -
          Field Original Value New Value
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 166062 ] JNJira + In-Review [ 197898 ]

            People

            • Assignee:
              aquarellian Tatiana Didik
              Reporter:
              aquarellian Tatiana Didik
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: