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

View should not crash if configured with a non-existing Jenkins pipeline

    Details

    • Similar Issues:

      Description

      If a delivery pipeline view for a Jenkins pipeline is configured with a non-existing project, it currently fails with a NPE. This should be handled gracefully.

      Caused by: java.io.IOException: Failed to write pipelines
      	at org.kohsuke.stapler.export.Property.safeGetValue(Property.java:151)
      	at org.kohsuke.stapler.export.Property.writeTo(Property.java:126)
      	at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:227)
      	at org.kohsuke.stapler.export.Model.writeTo(Model.java:198)
      	at org.kohsuke.stapler.ResponseImpl.writeOne(ResponseImpl.java:285)
      	at org.kohsuke.stapler.ResponseImpl.serveExposedBean(ResponseImpl.java:276)
      	at hudson.model.Api.doJson(Api.java:211)
      	... 85 more
      Caused by: java.lang.reflect.InvocationTargetException
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.kohsuke.stapler.export.MethodProperty.getValue(MethodProperty.java:66)
      	at org.kohsuke.stapler.export.Property.safeGetValue(Property.java:145)
      	... 91 more
      Caused by: java.lang.NullPointerException
      	at se.diabol.jenkins.workflow.WorkflowPipelineView.resolvePipelines(WorkflowPipelineView.java:177)
      	at se.diabol.jenkins.workflow.WorkflowPipelineView.getPipelines(WorkflowPipelineView.java:164)
      

        Attachments

          Activity

          Show
          tommysdk Tommy Tynjä added a comment - Proposed solution: https://github.com/Diabol/delivery-pipeline-plugin/pull/240
          Hide
          tommysdk Tommy Tynjä added a comment -

          PR merged. Will be part of next release.

          Show
          tommysdk Tommy Tynjä added a comment - PR merged. Will be part of next release.
          Hide
          tommysdk Tommy Tynjä added a comment -

          Released in Delivery Pipeline Plugin 1.0.1

          Show
          tommysdk Tommy Tynjä added a comment - Released in Delivery Pipeline Plugin 1.0.1

            People

            • Assignee:
              tommysdk Tommy Tynjä
              Reporter:
              tommysdk Tommy Tynjä
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: