Jenkins构建失败,出现“在根项目中找不到任务'播放'”错误

时间:2019-06-18 19:33:30

标签: android jenkins gradle

我正在尝试使用Jenkins对Google Play进行持续部署。为此,我正在使用Gradle Play Publisher libray。我可以通过运行以下命令-

从Android Studio在本地测试发布部分
./gradlew clean :app:publishBundle

当我在Jenkins中添加Invoke Gradle script步骤并选择Use Gradle wrapper时,同一命令失败。我收到以下错误-

Task 'Play' not found in root project 'app-bundles'.

这是我使用库中play属性的app.build gradle文件的一部分-

plugins {
    id 'com.android.application'
    id 'com.github.triplet.play' version '2.2.1'
}

.
.
.

play {
        track = trackProperty
        userFraction = userFractionProperty as Double
        serviceAccountEmail = serviceAccountEmailProperty
        serviceAccountCredentials = file(serviceAccountCredentialsProperty)
}

我很难解决此问题。

0 个答案:

没有答案