Open mikeeastin opened 2 years ago
[root@jszx-test backend]# pwd /data/bk-ci/src/backend [root@jszx-test backend]# gradle clean build
FAILURE: Build failed with an exception.
What went wrong: Task 'clean' not found in root project 'backend'.
Try: Run gradle tasks to get a list of available tasks. 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.
Get more help at https://help.gradle.org
BUILD FAILED in 0s [root@jszx-test backend]# gradle clean build --stacktrace
FAILURE: Build failed with an exception.
What went wrong: Task 'clean' not found in root project 'backend'.
Try: Run gradle tasks to get a list of available tasks. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Exception is: org.gradle.execution.TaskSelectionException: Task 'clean' not found in root project 'backend'. at org.gradle.execution.TaskSelector.getSelection(TaskSelector.java:116) at org.gradle.execution.TaskSelector.getSelection(TaskSelector.java:81) at org.gradle.execution.commandline.CommandLineTaskParser.parseTasks(CommandLineTaskParser.java:42) at org.gradle.execution.TaskNameResolvingBuildConfigurationAction.configure(TaskNameResolvingBuildConfigurationAction.java:45) at org.gradle.execution.DefaultBuildConfigurationActionExecuter.configure(DefaultBuildConfigurationActionExecuter.java:57) at org.gradle.execution.DefaultBuildConfigurationActionExecuter.access$200(DefaultBuildConfigurationActionExecuter.java:26) at org.gradle.execution.DefaultBuildConfigurationActionExecuter$2.proceed(DefaultBuildConfigurationActionExecuter.java:63) at org.gradle.execution.DefaultTasksBuildExecutionAction.configure(DefaultTasksBuildExecutionAction.java:44) at org.gradle.execution.DefaultBuildConfigurationActionExecuter.configure(DefaultBuildConfigurationActionExecuter.java:57) at org.gradle.execution.DefaultBuildConfigurationActionExecuter.access$200(DefaultBuildConfigurationActionExecuter.java:26) at org.gradle.execution.DefaultBuildConfigurationActionExecuter$2.proceed(DefaultBuildConfigurationActionExecuter.java:63) at org.gradle.execution.ExcludedTaskFilteringBuildConfigurationAction.configure(ExcludedTaskFilteringBuildConfigurationAction.java:47) at org.gradle.execution.DefaultBuildConfigurationActionExecuter.configure(DefaultBuildConfigurationActionExecuter.java:57) at org.gradle.execution.DefaultBuildConfigurationActionExecuter.access$200(DefaultBuildConfigurationActionExecuter.java:26) at org.gradle.execution.DefaultBuildConfigurationActionExecuter$1.run(DefaultBuildConfigurationActionExecuter.java:43) at org.gradle.internal.Factories$1.create(Factories.java:25) at org.gradle.api.internal.project.DefaultProjectStateRegistry.withLenientState(DefaultProjectStateRegistry.java:132) at org.gradle.api.internal.project.DefaultProjectStateRegistry.withLenientState(DefaultProjectStateRegistry.java:124) at org.gradle.execution.DefaultBuildConfigurationActionExecuter.select(DefaultBuildConfigurationActionExecuter.java:39) at org.gradle.initialization.DefaultGradleLauncher$CalculateTaskGraph.run(DefaultGradleLauncher.java:317) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:301) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:293) at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:175) at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91) at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31) at org.gradle.initialization.DefaultGradleLauncher.constructTaskGraph(DefaultGradleLauncher.java:202) at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:154) at org.gradle.initialization.DefaultGradleLauncher.executeTasks(DefaultGradleLauncher.java:133) at org.gradle.internal.invocation.GradleBuildController$1.execute(GradleBuildController.java:79) at org.gradle.internal.invocation.GradleBuildController$1.execute(GradleBuildController.java:76) at org.gradle.internal.invocation.GradleBuildController$3.create(GradleBuildController.java:103) at org.gradle.internal.invocation.GradleBuildController$3.create(GradleBuildController.java:96) at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:183) at org.gradle.internal.work.StopShieldingWorkerLeaseService.withLocks(StopShieldingWorkerLeaseService.java:40) at org.gradle.internal.invocation.GradleBuildController.doBuild(GradleBuildController.java:96) at org.gradle.internal.invocation.GradleBuildController.run(GradleBuildController.java:76) at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28) at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35) at org.gradle.tooling.internal.provider.ValidatingBuildActionRunner.run(ValidatingBuildActionRunner.java:32) at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner$3.run(RunAsBuildOperationBuildActionRunner.java:49) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:301) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:293) at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:175) at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91) at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31) at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner.run(RunAsBuildOperationBuildActionRunner.java:44) at org.gradle.tooling.internal.provider.SubscribableBuildActionRunner.run(SubscribableBuildActionRunner.java:51) at org.gradle.launcher.exec.InProcessBuildActionExecuter$1.transform(InProcessBuildActionExecuter.java:47) at org.gradle.launcher.exec.InProcessBuildActionExecuter$1.transform(InProcessBuildActionExecuter.java:44) at org.gradle.composite.internal.DefaultRootBuildState.run(DefaultRootBuildState.java:79) at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:44) at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:30) at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:39) at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:25) at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:78) at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:52) at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:62) at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:34) at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:36) at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:25) at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:43) at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:29) at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:59) at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:31) at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:59) at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:44) at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:46) at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:30) at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:67) at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122) at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:37) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122) at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122) at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122) at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74) at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72) at org.gradle.util.Swapper.swap(Swapper.java:38) at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122) at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122) at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:62) at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122) at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:81) at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122) at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50) at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:295) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63) at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46) at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
Get more help at https://help.gradle.org
BUILD FAILED in 0s
you should go into directory ci
or other gradle projects' directory.
[root@jszx-test backend]# pwd
/data/bk-ci/src/backend
[root@jszx-test backend]# cd ci/
[root@jszx-test ci]# ls
boot-assembly build.gradle.kts buildSrc core gradle gradle.properties gradle.properties-bak gradlew gradlew.bat README.md settings.gradle.kts
[root@jszx-test ci]#
[root@jszx-test ci]#
[root@jszx-test ci]#
[root@jszx-test ci]#
[root@jszx-test ci]#
[root@jszx-test ci]# gradle clean build
Starting a Gradle Daemon, 3 incompatible Daemons could not be reused, use --status for details
The kotlin-dsl
plugin applied to project ':buildSrc' enables experimental Kotlin compiler features. For more information see https://docs.gradle.org/5.0/userguide/kotlin_dsl.html#sec:kotlin-dsl_plugin
e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (37, 5): Unresolved reference: archiveClassifier
e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (44, 5): Unresolved reference: archiveClassifier
e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (64, 1): Expression 'publishing' cannot be invoked as a function. The function 'invoke()' is not found
e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (64, 1): Unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
public val PluginDependenciesSpec.publishing: PluginDependencySpec defined in org.gradle.kotlin.dsl
e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (65, 5): Unresolved reference: publications
e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (66, 9): Unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
public inline fun <U : TypeVariable(T), T : Any> PolymorphicDomainObjectContainer<TypeVariable(T)>.create(name: String, type: KClass<TypeVariable(U)>): TypeVariable(U) defined in org.gradle.kotlin.dsl
public inline fun <U : TypeVariable(T), T : Any> PolymorphicDomainObjectContainer<TypeVariable(T)>.create(name: String, type: KClass<TypeVariable(U)>, configuration: Action<in TypeVariable(U)>): TypeVariable(U) defined in org.gradle.kotlin.dsl
public inline fun
Task :buildSrc:compileKotlin FAILED
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':buildSrc:compileKotlin'.
Compilation error. See log for more details
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.
Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/5.0/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 17s
[root@jszx-test backend]# pwd
/data/bk-ci/src/backend
[root@jszx-test backend]# cd ci/
[root@jszx-test ci]# ls
boot-assembly build.gradle.kts buildSrc core gradle gradle.properties gradle.properties-bak gradlew gradlew.bat README.md settings.gradle.kts
[root@jszx-test ci]#
[root@jszx-test ci]#
[root@jszx-test ci]#
[root@jszx-test ci]#
[root@jszx-test ci]#
[root@jszx-test ci]# gradle clean build
Starting a Gradle Daemon, 3 incompatible Daemons could not be reused, use --status for details
The kotlin-dsl
plugin applied to project ':buildSrc' enables experimental Kotlin compiler features. For more information see https://docs.gradle.org/5.0/userguide/kotlin_dsl.html#sec:kotlin-dsl_plugin
e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (37, 5): Unresolved reference: archiveClassifier
e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (44, 5): Unresolved reference: archiveClassifier
e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (64, 1): Expression 'publishing' cannot be invoked as a function. The function 'invoke()' is not found
e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (64, 1): Unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
public val PluginDependenciesSpec.publishing: PluginDependencySpec defined in org.gradle.kotlin.dsl
e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (65, 5): Unresolved reference: publications
e: /data/bk-ci/src/backend/ci/buildSrc/src/main/kotlin/plugins/task-deploy-to-maven.gradle.kts: (66, 9): Unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
public inline fun <U : TypeVariable(T), T : Any> PolymorphicDomainObjectContainer<TypeVariable(T)>.create(name: String, type: KClass<TypeVariable(U)>): TypeVariable(U) defined in org.gradle.kotlin.dsl
public inline fun <U : TypeVariable(T), T : Any> PolymorphicDomainObjectContainer<TypeVariable(T)>.create(name: String, type: KClass<TypeVariable(U)>, configuration: Action<in TypeVariable(U)>): TypeVariable(U) defined in org.gradle.kotlin.dsl
public inline fun
Task :buildSrc:compileKotlin FAILED
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':buildSrc:compileKotlin'.
Compilation error. See log for more details
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.
Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/5.0/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 17s
[root@jszx-test ci]# kotlinc -version info: kotlinc-jvm 1.2.20-eap-11 (JRE 1.8.0_322-b06)
it looks like the gradle version is too lower, try using the gradle wrapper ./gradlew clean build
in ci
directory
thanks ,i update the gradle version to 6.7 ,then solve the issue,but i got this error
Task :core:project:biz-project:compileKotlin FAILED e: /data/bk-ci/src/backend/ci/core/project/biz-project/src/main/kotlin/com/tencent/devops/project/dao/ProjectTagDao.kt: (59, 41): Unresolved reference: OTHER_ROUTER_TAGS e: /data/bk-ci/src/backend/ci/core/project/biz-project/src/main/kotlin/com/tencent/devops/project/service/ProjectTagService.kt: (187, 38): Unresolved reference: otherRouterTags e: /data/bk-ci/src/backend/ci/core/project/biz-project/src/main/kotlin/com/tencent/devops/project/service/ProjectTagService.kt: (188, 54): Unresolved reference: otherRouterTags e: /data/bk-ci/src/backend/ci/core/project/biz-project/src/main/kotlin/com/tencent/devops/project/service/ProjectTagService.kt: (194, 46): Overload resolution ambiguity: public inline fun
ObjectMapper.readValue(jp: JsonParser): TypeVariable(T) defined in com.fasterxml.jackson.module.kotlin public inline fun ObjectMapper.readValue(src: File): TypeVariable(T) defined in com.fasterxml.jackson.module.kotlin
... ....
Task :core:process:biz-base:compileKotlin FAILED e: /data/bk-ci/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/dao/PipelineBuildContainerDao.kt: (57, 28): Not enough information to infer type variable T5 e: /data/bk-ci/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/dao/PipelineBuildContainerDao.kt: (63, 21): Unresolved reference: MATRIX_GROUP_FLAG e: /data/bk-ci/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/dao/PipelineBuildContainerDao.kt: (64, 21): Unresolved reference: MATRIX_GROUP_ID e: /data/bk-ci/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/dao/PipelineBuildContainerDao.kt: (68, 21): Unresolved reference: CONTAINER_HASH_ID e: /data/bk-ci/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/dao/PipelineBuildContainerDao.kt: (111, 30): Unresolved reference: CONTAINER_HASH_ID e: /data/bk-ci/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/dao/PipelineBuildContainerDao.kt: (112, 30): Unresolved reference: MATRIX_GROUP_FLAG e: /data/bk-ci/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/dao/PipelineBuildContainerDao.kt: (113, 30): Unresolved reference: MATRIX_GROUP_ID e: /data/bk-ci/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/dao/PipelineBuildContainerDao.kt: (142, 30): Unresolved reference: MATRIX_GROUP_ID e: /data/bk-ci/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/dao/PipelineBuildContainerDao.kt: (142, 50): Unresolved reference: matrixGroupId e: /data/bk-ci/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/dao/PipelineBuildContainerDao.kt: (145, 30): Unresolved reference: CONTAINER_HASH_ID e: /data/bk-ci/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/dao/PipelineBuildContainerDao.kt: (145, 52): Unresolved reference: containerHashId e: /data/bk-ci/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/dao/PipelineBuildContainerDao.kt: (247, 35): Unresolved reference: MATRIX_GROUP_ID e: /data/bk-ci/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/dao/PipelineBuildContainerDao.kt: (263, 22): Unresolved reference: MATRIX_GROUP_ID e: /data/bk-ci/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/dao/PipelineBuildContainerDao.kt: (279, 22): Unresolved reference: MATRIX_GROUP_ID e: /data/bk-ci/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/dao/PipelineBuildContainerDao.kt: (299, 22): Unresolved reference: MATRIX_GROUP_ID e: /data/bk-ci/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/dao/PipelineBuildContainerDao.kt: (333, 35): Unresolved reference: containerHashId e: /data/bk-ci/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/dao/PipelineBuildContainerDao.kt: (334, 35): Unresolved reference: matrixGroupFlag e: /data/bk-ci/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/dao/PipelineBuildContainerDao.kt: (335, 33): Unresolved reference: matrixGroupId e: /data/bk-ci/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/dao/PipelineBuildTaskDao.kt: (61, 28): Not enough information to infer type variable T10 e: /data/bk-ci/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/dao/PipelineBuildTaskDao.kt: (72, 21): Unresolved reference: STEP_ID e: /data/bk-ci/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/dao/PipelineBuildTaskDao.kt: (128, 26): Unresolved reference: STEP_ID e: /data/bk-ci/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/dao/PipelineBuildTaskDao.kt: (180, 30): Unresolved reference: STEP_ID e: /data/bk-ci/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/dao/PipelineBuildTaskDao.kt: (180, 42): Unresolved reference: stepId e: /data/bk-ci/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/dao/PipelineBuildTaskDao.kt: (291, 26): Unresolved reference: stepId
Task :core:store:biz-store:compileKotlin FAILED e: /data/bk-ci/src/backend/ci/core/store/biz-store/src/main/kotlin/com/tencent/devops/store/dao/atom/MarketAtomDao.kt: (496, 17): Unresolved reference: BRANCH e: /data/bk-ci/src/backend/ci/core/store/biz-store/src/main/kotlin/com/tencent/devops/store/dao/atom/MarketAtomDao.kt: (530, 54): Unresolved reference: branch e: /data/bk-ci/src/backend/ci/core/store/biz-store/src/main/kotlin/com/tencent/devops/store/service/atom/impl/AtomReleaseServiceImpl.kt: (975, 37): Unresolved reference: branch e: /data/bk-ci/src/backend/ci/core/store/biz-store/src/main/kotlin/com/tencent/devops/store/service/atom/impl/OpAtomServiceImpl.kt: (280, 35): Unresolved reference: branch
FAILURE: Build completed with 3 failures.
What went wrong: Execution failed for task ':core:project:biz-project:compileKotlin'.
Compilation error. See log for more details
What went wrong: Execution failed for task ':core:process:biz-base:compileKotlin'.
Compilation error. See log for more details
What went wrong: Execution failed for task ':core:store:biz-store:compileKotlin'.
Compilation error. See log for more details
Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.7/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 1m 26s 770 actionable tasks: 570 executed, 173 from cache, 27 up-to-date
it seems i lost some config , i find this property "OTHER_ROUTER_TAGS" in ProjectTagDao.kt fun updateExtSystemProjectTags( dslContext: DSLContext, routerTag: String, projectCode: String ) { with(Tables.T_PROJECT) { dslContext.update(this).set(OTHER_ROUTER_TAGS, routerTag) .where(ENGLISH_NAME.eq(projectCode)).execute() } }
it seems i lost some config , i find this property "OTHER_ROUTER_TAGS" in ProjectTagDao.kt fun updateExtSystemProjectTags( dslContext: DSLContext, routerTag: String, projectCode: String ) { with(Tables.T_PROJECT) { dslContext.update(this).set(OTHER_ROUTER_TAGS, routerTag) .where(ENGLISH_NAME.eq(projectCode)).execute() } }
although got up error log ,but release dic list springboot .jar , i dont know is it success
Task :core:process:biz-base:compileKotlin FAILED
Task :core:store:biz-store:compileKotlin FAILED e: /data/bk-ci/src/backend/ci/core/store/biz-store/src/main/kotlin/com/tencent/devops/store/dao/atom/MarketAtomDao.kt: (496, 17): Unresolved reference: BRANCH e: /data/bk-ci/src/backend/ci/core/store/biz-store/src/main/kotlin/com/tencent/devops/store/dao/atom/MarketAtomDao.kt: (530, 54): Unresolved reference: branch e: /data/bk-ci/src/backend/ci/core/store/biz-store/src/main/kotlin/com/tencent/devops/store/service/atom/impl/AtomReleaseServiceImpl.kt: (975, 37): Unresolved reference: branch e: /data/bk-ci/src/backend/ci/core/store/biz-store/src/main/kotlin/com/tencent/devops/store/service/atom/impl/OpAtomServiceImpl.kt: (280, 35): Unresolved reference: branch
FAILURE: Build completed with 3 failures.
What went wrong: Execution failed for task ':core:project:biz-project:compileKotlin'.
Compilation error. See log for more details
What went wrong: Execution failed for task ':core:process:biz-base:compileKotlin'.
Compilation error. See log for more details
What went wrong: Execution failed for task ':core:store:biz-store:compileKotlin'.
Compilation error. See log for more details
Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.7/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 1m 26s 738 actionable tasks: 548 executed, 160 from cache, 30 up-to-date [root@jszx-test ci]# ls boot-assembly build build.gradle.kts buildSrc core gradle gradle.properties gradle.properties-bak gradlew gradlew.bat README.md release settings.gradle.kts [root@jszx-test ci]# cd release/ [root@jszx-test release]# ls boot-artifactory.jar boot-buildless.jar boot-dispatch.jar boot-environment.jar boot-log.jar boot-monitoring.jar boot-openapi.jar boot-repository.jar boot-auth.jar boot-dispatch-docker.jar boot-dockerhost.jar boot-image.jar boot-misc.jar boot-notify.jar boot-quality.jar boot-ticket.jar [root@jszx-test release]#
[root@jszx-test boot-artifactory]# java -jar boot-artifactory.jar 2022-02-15 10:28:29.007|||EnableEncryptablePropertiesBeanFactoryPostProcessor.java|39|INFO||||||[main] Post-processing PropertySource instances 2022-02-15 10:28:29.132|||EncryptablePropertySourceConverter.java|56|INFO||||||[main] Converting PropertySource configurationProperties [org.springframework.boot.context.properties.source.ConfigurationPropertySourcesPropertySource] to AOP Proxy 2022-02-15 10:28:29.133|||EncryptablePropertySourceConverter.java|56|INFO||||||[main] Converting PropertySource bootstrap [org.springframework.core.env.MapPropertySource] to EncryptableMapPropertySourceWrapper 2022-02-15 10:28:29.134|||EncryptablePropertySourceConverter.java|56|INFO||||||[main] Converting PropertySource systemProperties [org.springframework.core.env.PropertiesPropertySource] to EncryptableMapPropertySourceWrapper 2022-02-15 10:28:29.134|||EncryptablePropertySourceConverter.java|56|INFO||||||[main] Converting PropertySource systemEnvironment [org.springframework.boot.env.SystemEnvironmentPropertySourceEnvironmentPostProcessor$OriginAwareSystemEnvironmentPropertySource] to EncryptableSystemEnvironmentPropertySourceWrapper 2022-02-15 10:28:29.135|||EncryptablePropertySourceConverter.java|56|INFO||||||[main] Converting PropertySource random [org.springframework.boot.env.RandomValuePropertySource] to EncryptablePropertySourceWrapper 2022-02-15 10:28:29.135|||EncryptablePropertySourceConverter.java|56|INFO||||||[main] Converting PropertySource cachedrandom [org.springframework.cloud.util.random.CachedRandomPropertySource] to EncryptablePropertySourceWrapper 2022-02-15 10:28:29.135|||EncryptablePropertySourceConverter.java|56|INFO||||||[main] Converting PropertySource springCloudClientHostInfo [org.springframework.core.env.MapPropertySource] to EncryptableMapPropertySourceWrapper 2022-02-15 10:28:29.359|||PostProcessorRegistrationDelegate.java|376|INFO||||||[main] Bean 'org.springframework.retry.annotation.RetryConfiguration' of type [org.springframework.retry.annotation.RetryConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2022-02-15 10:28:29.413|||DefaultLazyPropertyFilter.java|31|INFO||||||[main] Property Filter custom Bean not found with name 'encryptablePropertyFilter'. Initializing Default Property Filter 2022-02-15 10:28:31.265 ERROR 17231 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
APPLICATION FAILED TO START
Description:
A component required a bean named 'configServerRetryInterceptor' that could not be found.
Action:
Consider defining a bean named 'configServerRetryInterceptor' in your configuration.
[root@jszx-test boot-artifactory]# [root@jszx-test boot-artifactory]#
you need import support-files/sql/*.sql
into the mysql before execute gradle build
because we use the "JOOQ ORM framework" , POJO was generate by mysql db and table schema
严重: Error in file: /data/bk-ci/src/backend/ci/core/environment/model-environment/build/tmp/generateGenenrateJooq/config.xml. Error : The server time zone value '�й���ʱ��' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the 'serverTimezone' configuration property) to use a more specific time zone value if you want to utilize time zone support.
java.sql.SQLException: The server time zone value '�й���ʱ��' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the 'serverTimezone' configuration property) to use a more specific time zone value if you want to utilize time zone support.
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:129)
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97)
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:89)
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:63)
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:73)
at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:76)
at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:836)
at com.mysql.cj.jdbc.ConnectionImpl.
how to config "serverTimezone"
edit file gradle.properties ? add serverTimezone property ?
it seems solve this error , by find the plugin file task-gen-jooq.gradle.kts , edit code "url = "jdbc:mysql://$mysqlURL/$databaseName?useSSL=false"" and ,replace to url = "jdbc:mysql://$mysqlURL/$databaseName?useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC"
alfter build success , i found 25 jar in release dic, should i run all 25 spring jar ?
Task :core:process:biz-process-sample:compileKotlin w: /data/bk-ci/src/backend/ci/core/process/biz-process-sample/src/main/kotlin/com/tencent/devops/process/permission/service/impl/V3PipelinePermissionService.kt: (169, 90): Unnecessary non-null assertion (!!) on a non-null receiver of type String
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.7/userguide/command_line_interface.html#sec:command_line_warnings
BUILD SUCCESSFUL in 7m 16s 919 actionable tasks: 764 executed, 16 from cache, 139 up-to-date [root@jszx-test ci]# ls boot-assembly build build.gradle.kts buildSrc core gradle gradle.properties gradle.properties-bak gradlew gradlew.bat README.md release settings.gradle.kts [root@jszx-test ci]# cd release/ [root@jszx-test release]# ls boot-artifactory.jar boot-buildless.jar boot-dockerhost.jar boot-image.jar boot-monitoring.jar boot-plugin.jar boot-quality.jar boot-store.jar worker-agent.jar boot-assembly.jar boot-dispatch-docker.jar boot-engine.jar boot-log.jar boot-notify.jar boot-process.jar boot-repository.jar boot-ticket.jar boot-auth.jar boot-dispatch.jar boot-environment.jar boot-misc.jar boot-openapi.jar boot-project.jar boot-sign.jar boot-websocket.jar
i edit /data/bkee/ci/gateway/lua/init.lua add service_name = "bk-ci", then run "java -jar boot-assembly.jar " fail
[root@jszx-test gateway]# cd /data/bk-ci/src/backend/ci/release/ [root@jszx-test release]# java -jar boot-assembly.jar 2022-02-15 14:52:23.264|||EnableEncryptablePropertiesBeanFactoryPostProcessor.java|39|INFO||||||[main] Post-processing PropertySource instances 2022-02-15 14:52:23.382|||EncryptablePropertySourceConverter.java|56|INFO||||||[main] Converting PropertySource configurationProperties [org.springframework.boot.context.properties.source.ConfigurationPropertySourcesPropertySource] to AOP Proxy 2022-02-15 14:52:23.383|||EncryptablePropertySourceConverter.java|56|INFO||||||[main] Converting PropertySource bootstrap [org.springframework.core.env.MapPropertySource] to EncryptableMapPropertySourceWrapper 2022-02-15 14:52:23.383|||EncryptablePropertySourceConverter.java|56|INFO||||||[main] Converting PropertySource systemProperties [org.springframework.core.env.PropertiesPropertySource] to EncryptableMapPropertySourceWrapper 2022-02-15 14:52:23.383|||EncryptablePropertySourceConverter.java|56|INFO||||||[main] Converting PropertySource systemEnvironment [org.springframework.boot.env.SystemEnvironmentPropertySourceEnvironmentPostProcessor$OriginAwareSystemEnvironmentPropertySource] to EncryptableSystemEnvironmentPropertySourceWrapper 2022-02-15 14:52:23.384|||EncryptablePropertySourceConverter.java|56|INFO||||||[main] Converting PropertySource random [org.springframework.boot.env.RandomValuePropertySource] to EncryptablePropertySourceWrapper 2022-02-15 14:52:23.384|||EncryptablePropertySourceConverter.java|56|INFO||||||[main] Converting PropertySource cachedrandom [org.springframework.cloud.util.random.CachedRandomPropertySource] to EncryptablePropertySourceWrapper 2022-02-15 14:52:23.384|||EncryptablePropertySourceConverter.java|56|INFO||||||[main] Converting PropertySource springCloudClientHostInfo [org.springframework.core.env.MapPropertySource] to EncryptableMapPropertySourceWrapper 2022-02-15 14:52:23.599|||PostProcessorRegistrationDelegate.java|376|INFO||||||[main] Bean 'org.springframework.retry.annotation.RetryConfiguration' of type [org.springframework.retry.annotation.RetryConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2022-02-15 14:52:23.659|||DefaultLazyPropertyFilter.java|31|INFO||||||[main] Property Filter custom Bean not found with name 'encryptablePropertyFilter'. Initializing Default Property Filter 2022-02-15 14:52:25.528 INFO 8356 --- [ main] b.c.PropertySourceBootstrapConfiguration : Located property source: [BootstrapPropertySource {name='bootstrapProperties-config/application/'}] 2022-02-15 14:52:25.649 ERROR 8356 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
APPLICATION FAILED TO START
Description:
A component required a bean named 'configServerRetryInterceptor' that could not be found.
Action:
Consider defining a bean named 'configServerRetryInterceptor' in your configuration.
i add -Dspring.cloud.config.fail-fast=true not work
java -jar boot-assembly.jar -Dspring.cloud.config.fail-fast=true
[root@jszx-test release]# java -jar boot-assembly.jar -Dspring.cloud.config.fail-fast=true 2022-02-15 15:23:52.137|||EnableEncryptablePropertiesBeanFactoryPostProcessor.java|39|INFO||||||[main] Post-processing PropertySource instances 2022-02-15 15:23:52.260|||EncryptablePropertySourceConverter.java|56|INFO||||||[main] Converting PropertySource configurationProperties [org.springframework.boot.context.properties.source.ConfigurationPropertySourcesPropertySource] to AOP Proxy 2022-02-15 15:23:52.261|||EncryptablePropertySourceConverter.java|56|INFO||||||[main] Converting PropertySource bootstrap [org.springframework.core.env.MapPropertySource] to EncryptableMapPropertySourceWrapper 2022-02-15 15:23:52.262|||EncryptablePropertySourceConverter.java|56|INFO||||||[main] Converting PropertySource commandLineArgs [org.springframework.core.env.SimpleCommandLinePropertySource] to EncryptableEnumerablePropertySourceWrapper 2022-02-15 15:23:52.262|||EncryptablePropertySourceConverter.java|56|INFO||||||[main] Converting PropertySource systemProperties [org.springframework.core.env.PropertiesPropertySource] to EncryptableMapPropertySourceWrapper 2022-02-15 15:23:52.262|||EncryptablePropertySourceConverter.java|56|INFO||||||[main] Converting PropertySource systemEnvironment [org.springframework.boot.env.SystemEnvironmentPropertySourceEnvironmentPostProcessor$OriginAwareSystemEnvironmentPropertySource] to EncryptableSystemEnvironmentPropertySourceWrapper 2022-02-15 15:23:52.263|||EncryptablePropertySourceConverter.java|56|INFO||||||[main] Converting PropertySource random [org.springframework.boot.env.RandomValuePropertySource] to EncryptablePropertySourceWrapper 2022-02-15 15:23:52.263|||EncryptablePropertySourceConverter.java|56|INFO||||||[main] Converting PropertySource cachedrandom [org.springframework.cloud.util.random.CachedRandomPropertySource] to EncryptablePropertySourceWrapper 2022-02-15 15:23:52.263|||EncryptablePropertySourceConverter.java|56|INFO||||||[main] Converting PropertySource springCloudClientHostInfo [org.springframework.core.env.MapPropertySource] to EncryptableMapPropertySourceWrapper 2022-02-15 15:23:52.518|||PostProcessorRegistrationDelegate.java|376|INFO||||||[main] Bean 'org.springframework.retry.annotation.RetryConfiguration' of type [org.springframework.retry.annotation.RetryConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2022-02-15 15:23:52.583|||DefaultLazyPropertyFilter.java|31|INFO||||||[main] Property Filter custom Bean not found with name 'encryptablePropertyFilter'. Initializing Default Property Filter 2022-02-15 15:23:54.952 INFO 4584 --- [ main] b.c.PropertySourceBootstrapConfiguration : Located property source: [BootstrapPropertySource {name='bootstrapProperties-config/application/'}] 2022-02-15 15:23:55.060 ERROR 4584 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
APPLICATION FAILED TO START
Description:
A component required a bean named 'configServerRetryInterceptor' that could not be found.
Action:
Consider defining a bean named 'configServerRetryInterceptor' in your configuration.
it seems solve this error , by find the plugin file task-gen-jooq.gradle.kts , edit code "url = "jdbc:mysql://$mysqlURL/$databaseName?useSSL=false"" and ,replace to url = "jdbc:mysql://$mysqlURL/$databaseName?useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC"
we never need setup serverTimezone
, we build JOOQ in mysql 5.7
It's there any special config in your mysql server ? your mysql server version?
my mysql version is 5.7