Jagadish
Jagadish

Reputation: 61

Issue while integrating sonar in Jenkins for Android project

I am getting below command not found error while integration:

sonar:sonar -Dsonar.host.url=http://xxx.xxx.x.xx:8080
/var/folders/cv/k3dczf5d0lsbms1bz_pddnym0000gp/T/jenkins2968219490769913394.sh: line 8:
**sonar:sonar: command not found**

I followed these two links for sonar integration in Jenkins.

but not able to implement completely. It is showing command not found error. Below is the attached screenshot of my issue.

enter image description here

Upvotes: 2

Views: 131

Answers (1)

Mureinik
Mureinik

Reputation: 311393

sonar:sonar is a maven target, not a command. You should be calling mvn sonar:sonar.

Upvotes: 1

Related Questions