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

Cobertura misconfiguration destroys 'publishers' node

      The following things happen when the 'sourceEncoding' value is misconfigured in your DSL script (AKA assign a value that isn't in the dropdown):

      When creating the job, the 'publishers' node is generated empty, no matter if other publishers are also defined.
      When regenerating the job, the 'publishers' node is generated properly, but none of the publishers show up in the UI.

      Console output of the seed job doesn't complain about anything.

      Example:

      job("RIP_publishers") {
          publishers {
              cobertura('**/target/site/cobertura/coverage.xml') {
                  sourceEncoding('UTF-8') // Invalid
              }
              git {
                  pushOnlyIfSuccess()
              }
          }
      }
      

          [JENKINS-32573] Cobertura misconfiguration destroys 'publishers' node

          Thierry Lacour created issue -
          Daniel Spilker made changes -
          Component/s New: cobertura-plugin [ 15500 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 168223 ] New: JNJira + In-Review [ 183019 ]
          Jesse Glick made changes -
          Labels New: robustness
          Jamie Tanna made changes -
          Assignee Original: Daniel Spilker [ daspilker ] New: Jamie Tanna [ jamietanna ]

            jamietanna Jamie Tanna
            thi Thierry Lacour
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: