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

NullReferenceException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • Windows Server 2008 R2, SP1 (6.1.7601)
      Oracle Java 8 Update 121

      This post-build action recently began failing for us. I am unable to determine the specific change that may have caused this if it is environmental. The stacktrace of the plugin's null reference exception is provided below in context of the immediately preceding and following console output log lines.

      The source code location suggests the 'scanName' is null, but the interface says an empty scan name is okay, per help text: "Enter a template for a scan name. This field supports Env variables. Example: $JOB_NAME - $BUILD_NUMBER. Leave empty for auto value". As a testing step, I am in the process of cancelling a build and going to try to explicitly set these parameters rather than leaving it blank to see if I can work around this.

      Build Succeeded!
      
      ----------------------------------------------------------------------
      Build Time Report
      ----------------------------------------------------------------------
      Name            Duration        
      ----            --------        
      submit-veracode 00:00:18.1473678
      Total:          00:00:18.3340694
      
      
      [description-setter] Description set: R2017.01 2017.01.00.36 - Package 4528
      ERROR: Build step failed with exception
      java.lang.NullPointerException
      	at org.jenkinsci.plugins.veracodescanner.VeracodeNotifier.performScan(VeracodeNotifier.java:168)
      	at org.jenkinsci.plugins.veracodescanner.VeracodeNotifier.perform(VeracodeNotifier.java:94)
      	at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720)
      	at hudson.model.Build$BuildExecution.cleanUp(Build.java:195)
      	at hudson.model.Run.execute(Run.java:1776)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:98)
      	at hudson.model.Executor.run(Executor.java:404)
      Build step 'Submit Artifacts For Veracode Scan' marked build as failure
      Finished: SUCCESS
      

            mbockus Mike Bockus
            smcelroyalkami Sean McElroy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: