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

Flexible Publish NPE with no publishers for a conditional publisher

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Fixed
    • None
    • Flexible Publish 0.13
      tested with Jenkins 1.425, Jenkins 1.580.1

    Description

      (Copiied from JENKINS-19985)
      Steps to reproduce:

      1. Create a new freestyle project
      2. Add the Flexible publish as a post build action.
      3. Save the project without any actions for a conditional action.
      4. It will throw an exception, however the save happens!
        • In Jenkins 1.425, the exception is recorded only in the system log.
        • In Jenkins 1.580.1, the exception is displayed also on the browser.
      5. Execute a build and it will throw the NPE.

      Another way you can get this NPE:

      1. Same steps as 1, 2, 3, 4.
      2. Restarting Jenkins throws this NPE, however the project will fail to load and show an error about project actions.

      I set this to Critical, as this cause jobs lost for the latter problem.

      Attachments

        1. config.xml
          1 kB
        2. ExceptionOnBoot.txt
          1 kB
        3. ExceptionOnBuild.txt
          1 kB
        4. ExceptionOnSave.txt
          22 kB

        Issue Links

          Activity

            ikedam ikedam created issue -
            ikedam ikedam made changes -
            Field Original Value New Value
            Description (Copiied from JENKINS-19985)
            Steps to reproduce:
            # Create a new freestyle project
            # Add the Flexible publish as a post build action.
            # Save the project without any conditional publishers.
            # It will throw an exception, however the save happens!
            #* In Jenkins 1.425, the exception is recorded only in the system log.
            #* In Jenkins 1.580.1, the exception is displayed also on the browser.
            # Execute a build and it will throw the NPE.

            Another way you can get this NPE:
            # Same steps as 1, 2, 3, 4.
            # Restarting Jenkins throws this NPE, however the project will fail to load and show an error about project actions.


            I set this to Critical, as this cause jobs lost for the latter problem.
            (Copiied from JENKINS-19985)
            Steps to reproduce:
            # Create a new freestyle project
            # Add the Flexible publish as a post build action.
            # Save the project without any actions for a conditional action.
            # It will throw an exception, however the save happens!
            #* In Jenkins 1.425, the exception is recorded only in the system log.
            #* In Jenkins 1.580.1, the exception is displayed also on the browser.
            # Execute a build and it will throw the NPE.

            Another way you can get this NPE:
            # Same steps as 1, 2, 3, 4.
            # Restarting Jenkins throws this NPE, however the project will fail to load and show an error about project actions.


            I set this to Critical, as this cause jobs lost for the latter problem.
            Summary Flexible Publish NPE with no conditional Flexible Publish NPE with no publishers for a conditional publisher
            ikedam ikedam made changes -
            Link This issue is related to JENKINS-19985 [ JENKINS-19985 ]
            jglick Jesse Glick made changes -
            Remote Link This issue links to "PR 7 (Web Link)" [ 12023 ]
            ikedam ikedam made changes -
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Resolved [ 5 ]
            ikedam ikedam made changes -
            Status Resolved [ 5 ] Closed [ 6 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 160520 ] JNJira + In-Review [ 208347 ]

            People

              ikedam ikedam
              ikedam ikedam
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: