代码之家  ›  专栏  ›  技术社区  ›  urig

詹金斯在Ubuntu上,gradle在premission上失败被拒绝

  •  0
  • urig  · 技术社区  · 6 年前

    我有一个简单的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访问此文件及其需要使用的其他文件的权限的正确方法是什么?

    0 回复  |  直到 6 年前