Skip to content
This repository has been archived by the owner on Apr 26, 2023. It is now read-only.

No report found - See log excerpt. #34

Open
296951 opened this issue Nov 2, 2022 · 1 comment
Open

No report found - See log excerpt. #34

296951 opened this issue Nov 2, 2022 · 1 comment
Labels
question Further information is requested

Comments

@296951
Copy link

296951 commented Nov 2, 2022

Before posting a new question, please read the documentation](https://github.com/lequal/sonar-hadolint-plugin) and check existing issues

Describe what you need to know

A clear and concise description of what your question is.
No report found - See log excerpt.

Screenshots & log

If applicable, add screenshots to help explain your problem. Then, append SonarQube or Hadolint logs and do not forget to obfuscate them.

User environment

Please complete the following information.

  • OS: [e.g. Windows 10] Linux
  • SonarQube version [e.g. 7.9.3] 8.9.7
  • Java version: [e.g. 1.11] 11
  • Hadolint version: [e.g. 1.18.0] 2.10.0
  • Plugin version: [e.g. 1.0.0] 1.1.0

Additional context

Add any other context about the problem here.

Hadolint Run:

--> hadolint  --no-color --format checkstyle /home/jenkins/agent/workspace/us-dgames-dev_cs-nodejs-eks_main/Dockerfile  >hadolint-report.xml|| true
 + set +x
 + set +x
 + cat /home/jenkins/agent/workspace/us-dgames-dev_cs-nodejs-eks_main/hadolint-report.xml
 <?xml version='1.0' encoding='UTF-8'?><checkstyle version='4.3'><file name='/home/jenkins/agent/workspace/us&#45;dgames&#45;dev&#95;cs&#45;nodejs&#45;eks&#95;main/Dockerfile' ><error line='5' column='1' severity='error' message='Use COPY instead of ADD for files and folders' source='DL3020' /><error line='7' column='1' severity='warning' message='Do not use apt as it is meant to be a end&#45;user tool&#44; use apt&#45;get or apt&#45;cache instead' source='DL3027' /><error line='15' column='1' severity='warning' message='&#96;COPY&#96; to a relative destination without &#96;WORKDIR&#96; set.' source='DL3045' /><error line='16' column='1' severity='warning' message='&#96;COPY&#96; to a relative destination without &#96;WORKDIR&#96; set.' source='DL3045' /><error line='17' column='1' severity='warning' message='&#96;COPY&#96; to a relative destination without &#96;WORKDIR&#96; set.' source='DL3045' /><error line='18' column='1' severity='warning' message='&#96;COPY&#96; to a relative destination without &#96;WORKDIR&#96; set.' source='DL3045' /><error line='19' column='1' severity='warning' message='&#96;COPY&#96; to a relative destination without &#96;WORKDIR&#96; set.' source='DL3045' /></file></checkstyle>

Sonar args:

/home/jenkins/agent/tools/hudson.plugins.sonar.SonarRunnerInstallation/sonarscanner-4/bin/sonar-scanner -Dsonar.projectKey=cs-nodejs-eks -Dsonar.projectName=cs-nodejs-rest-api -Dsonar.sources=. -Dsonar.sourceEncoding=UTF-8 -Dsonar.analysis.mode=publish -Dsonar.projectVersion=1.0.310 -Dsonar.links.ci=https://***/jenkins/ '-Dsonar.exclusions=node_modules/**,bower_components/**,**/bower_components/**,docker-compose*.yml,src/reports/**' -Dsonar.verbose=true -Dsonar.log.level=trace -Dsonar.lang.patterns.dockerfile=Dockerfile -Dsonar.hadolint.reports.path=hadolint-report.xml -Dsonar.externalIssuesReportPaths=/home/jenkins/agent/workspace/us-dgames-dev_cs-nodejs-eks_main/src/reports/sonarqube-trivy-report-fs.json,/home/jenkins/agent/workspace/us-dgames-dev_cs-nodejs-eks_main/src/reports/sonarqube-trivy-report-config.json,/home/jenkins/agent/workspace/us-dgames-dev_cs-nodejs-eks_main/src/reports/sonarqube-trivy-report-image.json -Dsonar.issuesReport.json.enable=true -Dsonar.scm.disabled=true
 INFO: Scanner configuration file: /home/jenkins/agent/tools/hudson.plugins.sonar.SonarRunnerInstallation/sonarscanner-4/conf/sonar-scanner.properties

Sonar output:

 16:50:32.194 INFO: Sensor fr.cnes.sonar.plugins.hadolint.check.HadolintSensor [hadolint]
 16:50:32.194 WARN: Access to the multi-values/property set property 'sonar.hadolint.reports.path' should be made using 'getStringArray' method. The SonarQube plugin using this property should be updated.
 16:50:32.201 WARN: No report was found using pattern hadolint-report.xml
 16:50:32.201 INFO: Sensor fr.cnes.sonar.plugins.hadolint.check.HadolintSensor [hadolint] (done) | time=7ms
 16:50:32.201 INFO: Sensor fr.cnes.sonar.plugins.hadolint.check.MetricSensor [hadolint]
 16:50:32.202 DEBUG: 'Dockerfile' generated metadata with charset 'UTF-8'
 16:50:32.220 INFO: Sensor fr.cnes.sonar.plugins.hadolint.check.MetricSensor [hadolint] (done) | time=18ms
@296951 296951 added the question Further information is requested label Nov 2, 2022
@296951
Copy link
Author

296951 commented Nov 8, 2022

Any ideas?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant