我有一个简单的Jenkins文件,我正在Ubuntu v18.04.1 LTS上运行Jenkins v2.121.3:
pipeline {
agent {
// Run on a build agent where we have the Android SDK installed
label 'android'
}
stages {
stage('Compile') {
steps {
// Compile the app and its dependencies
sh './gradlew compileProdDebugSources'
}
}
}
}
+ ./gradlew compileProdDebugSources
:
无法使用TaskExecutionServices.createTaskHistoryRepository()创建TaskHistoryRepository类型的服务。
授予Jenkins访问此文件及其需要使用的其他文件的权限的正确方法是什么?