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

NPE when parsing Literate build description

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • literate
    • None

      I've create a minimal README.md

      # Build
      
         ./gradlew clean build
      

      However, literate-plugin throws an NPE while building:

      Parsing literate build description...
      Literate build description:
      FATAL: null
      java.lang.NullPointerException
      	at org.cloudbees.literate.jenkins.LiterateBranchBuild$RunnerImpl.doRun(LiterateBranchBuild.java:238)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:565)
      	at hudson.model.Run.execute(Run.java:1592)
      	at org.cloudbees.literate.jenkins.LiterateBranchBuild.run(LiterateBranchBuild.java:211)
      	at hudson.model.ResourceController.execute(ResourceController.java:88)
      	at hudson.model.Executor.run(Executor.java:237)
      	at hudson.model.OneOffExecutor.run(OneOffExecutor.java:66)
      

      From the stacktrace it looked like the plugin was missing 'environments', so I added one:

      # Build
      
         ./gradlew clean build
      
      # Environments
      
      * `linux`
      

      However, the issue remains

            stephenconnolly Stephen Connolly
            kutzi kutzi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: