Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors during Jenkins-Sonar-JDepend execution #10

Open
nargxf-zz opened this issue Jul 24, 2017 · 1 comment
Open

Errors during Jenkins-Sonar-JDepend execution #10

nargxf-zz opened this issue Jul 24, 2017 · 1 comment

Comments

@nargxf-zz
Copy link

Hi

I have created a Jenkins job that runs SONAR (5.6 LTS) for a specific project. JDepend rules have been activated and included to the active Quality profile. However, Jenkins job can't be executed successfully:

11:01:45.484 INFO: No information about coverage per test.
11:01:45.484 INFO: Sensor JaCoCoOverallSensor (wrapped) (done) | time=257ms
11:01:45.484 INFO: Sensor SonarJavaXmlFileSensor (wrapped)
11:01:45.488 INFO: Sensor SonarJavaXmlFileSensor (wrapped) (done) | time=4ms
11:01:45.488 INFO: Sensor jDepend sensor (wrapped)
11:01:45.497 INFO: Analysing classes in target/classes
11:01:45.502 INFO: ------------------------------------------------------------------------
11:01:45.502 INFO: EXECUTION FAILURE
11:01:45.502 INFO: ------------------------------------------------------------------------
11:01:45.503 INFO: Total time: 1:23.732s
11:01:45.698 INFO: Final Memory: 126M/4668M
11:01:45.698 INFO: ------------------------------------------------------------------------
11:01:45.698 ERROR: Error during SonarQube Scanner execution
java.lang.IllegalStateException: Could not analyse classes in target/classes
at nl.futureedge.sonar.plugin.jdepend.sensor.JdependSensor.execute(JdependSensor.java:56)
at org.sonar.batch.sensor.SensorWrapper.analyse(SensorWrapper.java:57)
at org.sonar.batch.phases.SensorsExecutor.executeSensor(SensorsExecutor.java:58)
at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:50)
at org.sonar.batch.phases.AbstractPhaseExecutor.execute(AbstractPhaseExecutor.java:83)
at org.sonar.batch.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:192)

Do I miss something?

@dzmitryh
Copy link

Solved it by executing that shell as extra step before sonar scanner run:
mkdir -p target/classes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants