Signed-off-by: Chenfei Zhang <chenfeiz@nvidia.com>
This commit is contained in:
Chenfei Zhang 2026-01-13 05:48:49 -08:00
parent e6588c4c10
commit 3963d565c0

View File

@ -149,7 +149,7 @@ EOF_TIMEOUT_XML
// Download perf test results
def perfResultsBasePath = "/home/svc_tensorrt/bloom/scripts/${nodeName}"
def folderListOutput = Utils.exec(pipeline, script: """sshpass -p '${remote.passwd}' ssh -p ${remote.port} ${COMMON_SSH_OPTIONS} ${remote.user}@${remote.host} "cd ${perfResultsBasePath} && ls -1d aggr*/ disagg*/ 2>/dev/null" || true""", returnStdout: true, numRetries: 3)?.trim() ?: ""
def folderListOutput = Utils.exec(pipeline, script: """sshpass -p '${remote.passwd}' ssh -p ${remote.port} ${COMMON_SSH_OPTIONS} ${remote.user}@${remote.host} "find ${perfResultsBasePath} -maxdepth 1 -type d \\( -name 'aggr*' -o -name 'disagg*' \\) -printf '%f\\n'" || true""", returnStdout: true, numRetries: 3)?.trim() ?: ""
echo "folderListOutput: ${folderListOutput}"
def perfFolders = folderListOutput.split(/\s+/).collect { it.trim().replaceAll(/\/$/, '') }.findAll { it }
if (perfFolders) {