Incomplete view configuration breaks all Jenkins views

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Critical
    • Component/s: build-pipeline-plugin
    • None
    • Environment:
      Jenkins 1.571
      Build Pipeline 1.4.3

      Steps to reproduce:

      1. Go to /newView
      2. Enter a name for the view
      3. Select type 'Build Pipeline View
      4. Press OK
      5. Do NOT save, go back to home page (or any other view)

      Expected results

      No problems accessing the home page or any other view page, or even the new Build Pipeline view, really.

      Actual results

      Stack trace preventing the view from showing up. Excerpt:

      Caused by: java.lang.NumberFormatException: null
      	at java.lang.Integer.parseInt(Integer.java:454)
      	at java.lang.Integer.valueOf(Integer.java:582)
      	at au.com.centrumsystems.hudson.plugin.buildpipeline.BuildPipelineView.getBuildPipelineForm(BuildPipelineView.java:400)
      	at au.com.centrumsystems.hudson.plugin.buildpipeline.BuildPipelineView.getItems(BuildPipelineView.java:866)
      	at au.com.centrumsystems.hudson.plugin.buildpipeline.BuildPipelineView.hasPermission(BuildPipelineView.java:932)
      	at hudson.model.ViewGroupMixIn.getViews(ViewGroupMixIn.java:115)
      	at jenkins.model.Jenkins.getViews(Jenkins.java:1444)

      Notes

      When aborting configuration of the new view, users need to manually navigate to /view/ViewName/configure to be able to delete it.

      This likely also affects instances with multiple users: While one user sets up initial configuration of the Build Pipeline view, Jenkins breaks for all others.

            Assignee:
            Steven Christou
            Reporter:
            Daniel Beck
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: