CAST HIGHLIGHT - Results Upload - Jenkins - "Directory containing perl script for analyzer should exist'

 

User is  getting the  error Directory containing perl script for analyzer should exist when uploading the results to the portal using Jenkins.

 

The Command used is 

C:\Tools\HighlightAgent>java -jar HighlightAutomation.jar --workingDir "C:\\Tools\\HighlightAgent\\workspace" --sourceDir "C:\\CodeScan\\CastHighlight2_5_3" --login XXXXXXXX" --password "XXXXXXXXX" --applicationId "XXXXXX" --companyId "XXXXX" --serverUrl https://rpa.casthighlight.com --snapshotLabel XXXXXX

 

 

Details

Normally where the CLI is installed, there should be a directory called perl, this directory should be passed in the CLI command


 

 

You can also set this directory with the --analyzerDir pointing to the perl directory Please refer  Highlight Automated Code Scan (Command Line) 


Check the version of the CLI that is being used.  Use the minimum supported version of the CLI. This is to ensure that users are getting the best experience (pattern/component detection improvements, bug fixes, etc.) and that the platform correctly processes scan results Please refer https://doc.casthighlight.com/ to know about the minimum supported version of CLI 

 

 

NB: In Windows, to locate the Installation Path where perl is installed,

  • Open Command Prompt or PowerShell and type the following command to find the path to Perl:
     where perl
  • This will return the full path to the Perl executable. For example, it might return:
     C:\Strawberry\perl\bin\perl.exe

Path to Perl (--perlInstallDir) should not contain the name of the .exe.

Please also refer  CAST HIGHLIGHT - CLI - Scan can't find the perl executable

 

Additional Resources

CAST Highlight Troubleshooting Guides

CAST Highlight Product Documentation

 

 

Zendesk Ticket Number 

46838, 49099

Have more questions? Submit a request

Comments

Powered by Zendesk