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

Not Creating protecodesc.xml in pipeline

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • protecode-sc-plugin
    • None
    • Jenkins 2.452.1
      Protecode SC Plugin: 0.19.1

      I'm trying to generate a Protecode SC report, and then display that report using the Summary Display Plugin.  I'm using the following in my Jenkins Pipeline

      pipeline {
        stages {
          stage() {
              steps {
                script

      {             protecodesc convertToSummary: true,                                     credentialsId: 'MYTOKEN',                                     failIfVulns: false,                                     pattern: "FILE_TO_UPLOAD",                                     protecodeScGroup: "SECURITY_GROUP_ID",                                     scanTimeout: 30           }

              }
            }
        }
      }

      The file uploads, I can see the scan in my Blackduck appliance and the pipeline even says it completed the scan and its going to generate the protecodesc.xml file


      ------------ Received all results from Black Duck Binary Analysis ------------
      ----------- Writing summary for summary plugin to protecodesc.xml ------------

      Creating xml report to protecodesc.xml


      I then get the following error

      Also: hudson.remoting.ProxyException: org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: a97002ce-2eb8-4931-829c-87af959119ca hudson.remoting.ProxyException: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of `com.synopsys.protecode.sc.jenkins.types.FileResult$SerializableResult` (no Creators, like default constructor, exist): cannot deserialize from Object value (no delegate- or property-based Creator) at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 2, column: 3]

            alatalo Ville Alatalo
            1971hemicuda Jason
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: