- ALM and CI system used: Bitbucket Cloud
- Scanner command used when applicable: Using a bitbucket pipe sonarsource/sonarcloud-scan:2.0.0: Bitbucket
- Languages of the repository: Helm Charts
- Error observed:
Sharing log for one of many similar errors, please note that tomcat is being used as a sub-chart here.
09:50:28.149 ERROR: Failed to evaluate Helm file sms-registration/templates/scripts-config.yaml: Template evaluation failed
09:50:28.149 DEBUG: Evaluation error in Go library: template: sms-registration/templates/scripts-config.yaml:4:20: executing "sms-registration/templates/scripts-config.yaml" at <{{template "tomcat.name" .}}>: template "tomcat.name" not defined
09:50:28.154 DEBUG: org.sonar.iac.common.extension.ParseException: Failed to evaluate Helm file sms-registration/templates/scripts-config.yaml: Template evaluation failed
- Steps to reproduce:
- Create a repository to contain helm charts
- Add a base chart in the repository
- Create another helm chart, and make it dependent on the base chart
- Run sonarcloud scan in any way possible in the repository (enable debugging). We use bitbucket pipe to do so.
- Observe ERROR and DEBUG logs
- Potential workaround: No workaround. Cannot add sonarcloud to the repository until this is resolved.
Thanks,
Tejas Meshram