The error says that java is not a directory. Maybe you have your classpath 
pointing to binary instead of the directory

El martes, 16 de junio de 2020, 19:41:01 (UTC+2), Jagadeesh YENNE escribió:
>
> Hi All,
>
>
> While I am running sonar-scanner job, I am getting below error, could someone 
> suggest me how to proceed on it.
>
>
> [MFT-Frontend-CI-Dev-UpdatedNode] $ /bin/bash 
> /tmp/jenkins1683394883835788984.sh
> Running Sonar
>
> > [email protected] sonar 
> > /mnt/block_device/jenkins1/workspace/MFT-Frontend/MFT-Frontend-CI-Dev-UpdatedNode/mft-frontend
> > sonar-scanner
>
> /mnt/block_device/jenkins1/workspace/MFT-Frontend/MFT-Frontend-CI-Dev-UpdatedNode/mft-frontend/node_modules/sonar-scanner/bin/sonar-scanner:
>  line 59: /usr/bin/java/bin/java: Not a directory
> /mnt/block_device/jenkins1/workspace/MFT-Frontend/MFT-Frontend-CI-Dev-UpdatedNode/mft-frontend/node_modules/sonar-scanner/bin/sonar-scanner:
>  line 59: exec: /usr/bin/java/bin/java: cannot execute: Not a directory
> npm ERR! code ELIFECYCLE
> npm ERR! errno 126
> npm ERR! [email protected] sonar: `sonar-scanner`
> npm ERR! Exit status 126
> npm ERR! 
> npm ERR! Failed at the [email protected] sonar script.
> npm ERR! This is probably not a problem with npm. There is likely additional 
> logging output above.
>
> npm ERR! A complete log of this run can be found in:
> npm ERR!     
> /mnt/block_device/jenkins1/.npm/_logs/2020-06-05T18_00_28_687Z-debug.log
> Build step 'Execute shell' marked build as failure
> Finished: FAILURE
>
>
> Regards,
> Jagadeesh
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/738ac41f-1515-4e1c-9876-f3a662ded949o%40googlegroups.com.

Reply via email to