Error "Failed to read the scan results file: Input length = 1" seen in Jenkins Pipeline post Prisma Cloud Scan

Error "Failed to read the scan results file: Input length = 1" seen in Jenkins Pipeline post Prisma Cloud Scan

1523
Created On 05/02/23 08:58 AM - Last Modified 07/13/23 08:22 AM


Symptom


  • Following Error seen in Jenkins Pipeline post Prisma Cloud Scan
Failed to read the scan results file: Input length = 1
Screenshot 2023-04-18 at 11.54.18 AM.png
 
 


Environment


  • Prisma Cloud Compute Edition
  • Jenkins Pipeline


Cause


  • Prisma Cloud only supports UTF-8 character encoding


Resolution


  • Confirm if the user is using UTF-8 encoding on the machine where Jenkins calls the Prisma Cloud Plugin
  • Validate the encoding by the command
 locale charmap
  • Users  can navigate to Jenkins > Manage Jenkins > Configure System > Global properties and configure the following Environment variables:
  1. Name: JAVA_TOOL_OPTIONS Value: -Dfile.encoding=UTF-8
  2. Name: LANG Value: LANG=C.UTF-8 
  3. Restart the Jenkins Server


Additional Information


For More Information, refer: How to resolve UTF-8 Encoding issue in Jenkins

Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA14u000000g1f8CAA&lang=en_US%E2%80%A9&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail