问题
自己电脑上能运行,推代码后在jekins上执行 gradlew assemble ,构建失败,错误如下。看信息是说 BaseAnalysisInit 这个类找不到,请问这是什么原因造成的?
12:26:17 /var/lib/jenkins/workspace/java-sync/db-sync/src/main/java/com/gunma/sync/db/interceptor/DefaultDataInterceptor.java:271: error: cannot find symbol
12:26:17 protected class DefaultAnalysisInit extends BaseAnalysisInit {
12:26:17 ^
12:26:17 symbol: class BaseAnalysisInit
12:26:17 location: class DefaultDataInterceptor
12:26:17 1 error
12:26:17 11 warnings
12:26:17 FAILED
12:26:17
12:26:17 FAILURE: Build failed with an exception.
12:26:17
12:26:17 * What went wrong:
12:26:17 Execution failed for task ':db-sync:compileJava'.
12:26:17 > Compilation failed; see the compiler error output for details.
12:26:17
12:26:17 * Try:
12:26:17 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.
12:26:17
12:26:17 * Get more help at https://help.gradle.org
12:26:17
12:26:17 Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
12:26:17 See https://docs.gradle.org/4.6/userguide/command_line_interface.html#sec:command_line_warnings
12:26:17
12:26:17 BUILD FAILED in 19s
12:26:17 7 actionable tasks: 1 executed, 6 up-to-date
12:26:18 Build step 'Invoke Gradle script' changed build result to FAILURE
12:26:18 Build step 'Invoke Gradle script' marked build as failure
12:26:18 Finished: FAILURE