RUdatha136677 (Community Member) asked a question.

Error: The file exceeds the maximum file size of 1 MB Even the changes.jar file size is 500KB

Hi I am trying to trigger GreenLight Scan via CI/CD tool. I am getting following message. Can you please help me what is going wrong

 

I am trying following command

 

java -jar c:\Soft\gl-scanner-java.jar --api_id "%VERACODE_API_KEY_ID%" --api_secret_key "%VERACODE_API_KEY_SECRET%" --source_dir "service-catalog-service/src/main/java" --build_dir "service-catalog-service/build/classes/java/main" --previous_commit_hash "<-Previous commit hash-->" --save_jar true

 

Error message:

==============

 

[26 May 2020 00:41:44,0412] GREENLIGHT INFO: Upload package 'changes.jar' populated.

[26 May 2020 00:41:44,0412] GREENLIGHT INFO: Beginning scanning of 'changes.jar'.

[26 May 2020 00:41:44,0412] GREENLIGHT INFO: Sending 588938 bytes to the server for analysis.

[26 May 2020 00:41:44,0953] GREENLIGHT INFO: Trying to execute POST https://api.veracode.com/greenlight/v3/scan/java/ HTTP/1.1

[26 May 2020 00:41:47,0481] GREENLIGHT ERROR: ERROR: The file exceeds the maximum file size of 1 MB.

 

Thanks

Ramesh


Topics (2)

No articles found
Loading

Ask the Community

Get answers, share a use case, discuss your favorite features, or get input from the community.