Closed claflico closed 6 years ago
Hey Cory - thanks for the note. Let me check this out this week and see if that's worth adding. My gut reaction says "yes". :)
I have the same problem while analyzing TypeScript.
INFO: Sensor TypeScript Sensor [typescript] INFO: ------------------------------------------------------------------------ INFO: EXECUTION FAILURE INFO: ------------------------------------------------------------------------ INFO: Total time: 15.517s INFO: Final Memory: 19M/329M INFO: ------------------------------------------------------------------------ ERROR: Error during SonarQube Scanner execution ERROR: Failed to run external process `node /root/src/.scannerwork/project/sonarts-bundle/node_modules/tslint-sonarts/bin/tsrunner`. Run with -X for more information ERROR: Caused by: Cannot run program "node": error=2, No such file or directory ERROR: Caused by: error=2, No such file or directory ERROR: ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging.
@UPDATE
Try this:
FROM newtmitch/sonar-scanner RUN curl -sL https://deb.nodesource.com/setup_9.x | bash - RUN apt-get install -y nodejs
Fixed. Sorry for the delay, everyone. RL / job takes precedence. :)
When using your image, the scan crashes with the following error whenever it tries to scan Typescript files:
ERROR: Failed to get Node.js version.No TypeScript files will be analyzed. You can exclude TypeScript files from analysis with 'sonar.exclusions' property
I was able to fix it by creating a custom image from your image and installing node. Not sure if that's something you might consider adding to this image.