diff --git a/src/backend/ci/core/log/api-log/src/main/kotlin/com/tencent/devops/common/log/pojo/TaskBuildLogProperty.kt b/src/backend/ci/core/log/api-log/src/main/kotlin/com/tencent/devops/common/log/pojo/TaskBuildLogProperty.kt index d4b848474d5..19dafedd2ad 100644 --- a/src/backend/ci/core/log/api-log/src/main/kotlin/com/tencent/devops/common/log/pojo/TaskBuildLogProperty.kt +++ b/src/backend/ci/core/log/api-log/src/main/kotlin/com/tencent/devops/common/log/pojo/TaskBuildLogProperty.kt @@ -37,7 +37,7 @@ data class TaskBuildLogProperty( @ApiModelProperty("日志文件子路径", required = true) val childPath: String, @ApiModelProperty("日志zip文件子路径", required = true) - val childZipPath: String, + val childZipPath: String?, @ApiModelProperty("日志文件句柄", required = true) val logFile: File, @ApiModelProperty("日志的存储模式", required = false) diff --git a/src/backend/ci/core/worker/worker-common/src/main/kotlin/com/tencent/devops/worker/common/logger/LoggerService.kt b/src/backend/ci/core/worker/worker-common/src/main/kotlin/com/tencent/devops/worker/common/logger/LoggerService.kt index 9340f38c390..cb199d6ea77 100644 --- a/src/backend/ci/core/worker/worker-common/src/main/kotlin/com/tencent/devops/worker/common/logger/LoggerService.kt +++ b/src/backend/ci/core/worker/worker-common/src/main/kotlin/com/tencent/devops/worker/common/logger/LoggerService.kt @@ -372,7 +372,7 @@ object LoggerService { ) { ArchiveUtils.archiveLogFile( file = zipLog, - destFullPath = property.childZipPath, + destFullPath = property.childZipPath!!, buildVariables = buildVariables!!, token = token )