您的位置 首页 Jenkins

解决方案:Failed to apply plugin ‘com.mob.sdk’.

> Failed to apply plugin 'com.mob.sdk'.
   > Permission denied

 

 

=============================
=== MobSDK 2023.0809.1456 ===
=============================

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* Where:
Script '/data/jenkinsdata/workspace/KTAPP/MobSDK.gradle' line: 1

* What went wrong:
A problem occurred evaluating script.
> Failed to apply plugin 'com.mob.sdk'.
   > Permission denied

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
A problem occurred configuring project ':app'.
> compileSdkVersion is not specified. Please add it to build.gradle

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================

 

 

之前一直好好的,没问题,

但是现在就不行了

原因  是 插件升级了

 

 

 

解决方案:

这个问题真的好难找,没有任何日志,

我去终端环境执行,就是没问题 。 咋办?

突然感觉是不是权限的问题,

我又切换到jenkins 用户下,发现,直接  编译 就出问题了。

明显是 root 权限的问题。

这种问题,只能把用户改成root了。

Jenkins以root用户运行的方法 -最全的 centos7 

欢迎来撩 : 汇总all

白眉大叔

关于白眉大叔linux云计算: 白眉大叔

热门文章