Skip to content

Commit

Permalink
第三方构建机DockerUi界面支持 TencentBlueKing#10962
Browse files Browse the repository at this point in the history
  • Loading branch information
tangruotian committed Sep 18, 2024
1 parent 6ab6574 commit 7e29d1f
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import com.tencent.devops.common.pipeline.type.agent.ThirdPartyAgentDockerInfo
import com.tencent.devops.common.pipeline.type.agent.ThirdPartyAgentDockerInfoStoreImage
import com.tencent.devops.common.pipeline.type.agent.ThirdPartyAgentEnvDispatchType
import com.tencent.devops.common.pipeline.type.agent.ThirdPartyAgentIDDispatchType
import com.tencent.devops.common.pipeline.type.docker.ImageType
import com.tencent.devops.process.pojo.BuildTemplateAcrossInfo
import com.tencent.devops.process.yaml.transfer.VariableDefault.DEFAULT_JOB_PREPARE_TIMEOUT
import com.tencent.devops.process.yaml.transfer.VariableDefault.nullIfDefault
Expand Down Expand Up @@ -191,7 +192,10 @@ class DispatchTransfer @Autowired(required = false) constructor(
),
options = info.options,
imagePullPolicy = info.imagePullPolicy,
storeImage = if (info.imageCode != null && info.imageVersion != null) {
storeImage = if (
info.imageType == ImageType.BKSTORE &&
info.imageCode != null && info.imageVersion != null
) {
ThirdPartyAgentDockerInfoStoreImage(
imageCode = info.imageCode,
imageVersion = info.imageVersion
Expand Down

0 comments on commit 7e29d1f

Please sign in to comment.