Сборка Android завершается сбоем на этапе сонара без ошибок выводаAndroid

Форум для тех, кто программирует под Android
Гость
Сборка Android завершается сбоем на этапе сонара без ошибок вывода

Сообщение Гость »


У меня есть проект jenkinsfile для Android. Для сборки используется Gradle. Не удалось выполнить этап сонара.
Ошибка немного странная:

Код: Выделить всё

Task 'app:sonar' is not up-to-date because:
Task has not declared any outputs despite executing actions.
...
SonarQube server [] can not be reached
Edit: with --info flag this is prepend to the message:

Код: Выделить всё

Task ':app:sonar' is not up-to-date because:
Task has not declared any outputs despite executing actions.
There are 2 build.gradle files. One in the top level directory:

Код: Выделить всё

buildscript {
...
repositories { ... }
dependencies { ... }
allprojects {
repositories { ... }
}
}
task clean(type: Delete) { ... }
And there is one in the project directory:

Код: Выделить всё

plugins {
id 'org.sonarqube' version '4.4.1.3373'
...
}
sonarqube {
properties {
property "sonar.host.url" "server"
property "sonar.projectKey" "key"
property "sonar.login" "token"
}
}
android {
buildTypes { ... }
productFlavors { ... }
}
dependencies { ... }
As far as I understood Gradle runs the 'sonarqube' as a step and there should be output to be sent to the server, but currently there is none.
Any suggestions what could be missing?


Источник: https://stackoverflow.com/questions/781 ... tput-error

Вернуться в «Android»