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

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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • quality-gates-plugin
    • None
    • Jenkins ver. 2.28
      Quality Gates Plugin 2.5

      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

          [JENKINS-39411] javax.servlet.ServletException on job save after adding quality gates post-build action

          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 
          

          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

          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.

          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.

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

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

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

              Created:
              Updated: