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

Languague level dropdown list "N/A" option and when build runs it's set as null

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical

      While setting up the HPE Fortify Uploader Plugin as a post-build action, the dropdown list for Language Level only displays "N/A".

      I can selected N/A and click save, but when I run the build, It throws a java.lang.NullPointerException because the Language Level has been set null.

      Full log description:

      6 Warning(s)
      0 Error(s)

      Time Elapsed 00:00:24.40
      Starting FoD Upload.
      Begin Create Zip.
      Temporary file created at: /jenkins/tmp/fodupload4397831620001274899.zip
      End Create Zip.
      Application Id: 39913
      Release Id: 55329
      Assessment Type Id: 170
      Technology Stack: .NET
      Language Level: null
      Run Open Source Analysis: true
      Express Scan: false
      Express Audit: true
      Exclude All Files: false
      Exclude Third Party: false
      Remediation Scan: false
      Entitlement Id: 3415
      Entitlement Frequency Type: Subscription
      Polling Interval: 0
      Pretty Log Output: true

      java.lang.NullPointerException
      at org.jenkinsci.plugins.fodupload.models.JobConfigModel.hasLanguageLevel(JobConfigModel.java:57)
      at org.jenkinsci.plugins.fodupload.controllers.StaticScanController.startStaticScan(StaticScanController.java:69)
      at org.jenkinsci.plugins.fodupload.FodUploaderPlugin.perform(FodUploaderPlugin.java:103)
      at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720)
      at hudson.model.Build$BuildExecution.post2(Build.java:185)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665)
      at hudson.model.Run.execute(Run.java:1766)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:410)
      Retiring Token : Token Retired Successfully
      Build step 'Fortify Uploader Plugin' changed build result to UNSTABLE
      Finished: UNSTABLE

            ryanblack Ryan Black
            jonathas_morais Jonathas Morais
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: