Skip to content

Commit

Permalink
worker和agent支持java17和java8同步运行 #10586
Browse files Browse the repository at this point in the history
  • Loading branch information
tangruotian committed Sep 6, 2024
1 parent 556cc75 commit 7c8deb2
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1108,6 +1108,17 @@ class ThirdPartyAgentMgrService @Autowired(required = false) constructor(
webSocketDispatcher.dispatch(
websocketService.buildDetailMessage(projectId, "")
)
} else {
// 在IP没变的情况下版本可能变化,这里单独更新下版本
if (!startInfo.masterVersion.isNullOrBlank() &&
agentRecord.masterVersion != startInfo.masterVersion
) {
nodeDao.updateDevopsAgentVersionByNodeId(
dslContext = dslContext,
nodeId = agentRecord.nodeId,
agentVersion = startInfo.masterVersion!!
)
}
}
}
}
Expand Down

0 comments on commit 7c8deb2

Please sign in to comment.