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

javax.servlet.ServletException on job save after adding quality gates post-build action

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Critical
    • Resolution: Unresolved
    • Component/s: quality-gates-plugin
    • Labels:
      None
    • Environment:
      Jenkins ver. 2.28
      Quality Gates Plugin 2.5
    • Similar Issues:

      Description

      Hello!
      I've installed Quality Gates Plugin 2.5 and added SonarQube instance in settings.
      After that I've created simple freestyle job which has only Quality Gates Post Build with Project Key of one of our project (I've tried different projects, nothing changed)
      Than started the job and it worked...
      BUT than I want to make changes in my job and every time i'm pressing save or apply button I got error with stack trace starting from:

      javax.servlet.ServletException: java.lang.RuntimeException: Failed to serialize hudson.model.Project#publishers for class hudson.model.FreeStyleProject
      

      This only happen if the job was finished at least once.

      I've tried to delete the job and got the same error, but on a second attempt it was deleted. I only noticed the difference - after first attempt the job was marked as disabled.

      Full stack trace here: http://pastebin.com/cT3SFFMU

        Attachments

          Activity

          Hide
          stefanbrausch Stefan Brausch added a comment -

          We have the same issue with Maven Job type too.

          [ERROR] Internal error: java.lang.RuntimeException: Failed to serialize hudson.model.Actionable#actions for class hudson.maven.MavenModuleSetBuild: Failed to serialize hudson.maven.MavenProbeAction#owner for class hudson.maven.MavenProbeAction: Failed to serialize hudson.maven.MavenModuleSet#publishers for class hudson.maven.MavenModuleSet: Failed to serialize quality.gates.jenkins.plugin.QGPublisher#buildDecision for class quality.gates.jenkins.plugin.QGPublisher: Failed to serialize 
          
          Show
          stefanbrausch Stefan Brausch added a comment - We have the same issue with Maven Job type too. [ERROR] Internal error: java.lang.RuntimeException: Failed to serialize hudson.model.Actionable#actions for class hudson.maven.MavenModuleSetBuild: Failed to serialize hudson.maven.MavenProbeAction#owner for class hudson.maven.MavenProbeAction: Failed to serialize hudson.maven.MavenModuleSet#publishers for class hudson.maven.MavenModuleSet: Failed to serialize quality.gates.jenkins.plugin.QGPublisher#buildDecision for class quality.gates.jenkins.plugin.QGPublisher: Failed to serialize
          Hide
          jochenafuerbacher Jochen A. Fürbacher added a comment - - edited

          Cannot reproduce with Jenkins 2.28 (as well as 2.42) and Quality Gates Plugin 2.5.

          EDIT: Ok, I can reproduce this problem only if the sonar instance is connected via HTTPS.

          Show
          jochenafuerbacher Jochen A. Fürbacher added a comment - - edited Cannot reproduce with Jenkins 2.28 (as well as 2.42) and Quality Gates Plugin 2.5. EDIT: Ok, I can reproduce this problem only if the sonar instance is connected via HTTPS.
          Hide
          jochenafuerbacher Jochen A. Fürbacher added a comment -

          Opened pull request that resolves this issue: https://github.com/jenkinsci/quality-gates-plugin/pull/51

          Show
          jochenafuerbacher Jochen A. Fürbacher added a comment - Opened pull request that resolves this issue: https://github.com/jenkinsci/quality-gates-plugin/pull/51

            People

            • Assignee:
              ivanash Ivana Sh
              Reporter:
              zblk Andrey Zykov
            • Votes:
              6 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated: