which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
We are running the Sonarqube Developer Version 8.9.1 (build 44547) using docker image sonarqube:8.9.1-developer.
what are you trying to achieve?
We are trying to run an android project (Gradle based) using Jenkins
what have you tried so far to achieve this
We have done the following
Not super clear why this build error is thrown . We have added the script as specified in the sonarqube pre requisite.
We are trying to identify what missing with sonarqube integration.
It would be great help if you point out what we missing.
If this is not the forum please direct to right point of contact
All buildscript {} blocks must appear before any plugins {} blocks in the script
Your screenshot shows that the plugins block was inserted at the beginning of your file, before the buildscript block.
I guess you were thrown by the documentation wording “First, include the scanner in your build…”. It’s the first thing to do, but apparently shouldn’t be the first thing in the file. I’ll bring that to the attention of the docs folks.