Error "Failed to read the scan results file: Input length = 1" seen in Jenkins Pipeline post Prisma Cloud Scan
1525
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
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:
- Name: JAVA_TOOL_OPTIONS Value: -Dfile.encoding=UTF-8
- Name: LANG Value: LANG=C.UTF-8
- Restart the Jenkins Server
Additional Information
For More Information, refer: How to resolve UTF-8 Encoding issue in Jenkins