milvus/ci/jenkinsfile/upload_dev_cluster_test_out.groovy
quicksilver f9b0050cdb MS-215 - add milvus cluster CI/CD groovy file
Former-commit-id: 61d3f98595be12a26c8563ee369d0f5526c407e8
2019-07-14 21:50:48 +08:00

15 lines
633 B
Groovy

timeout(time: 5, unit: 'MINUTES') {
dir ("${PROJECT_NAME}_test") {
if (fileExists('cluster_test_out')) {
def fileTransfer = load "${env.WORKSPACE}/ci/function/file_transfer.groovy"
fileTransfer.FileTransfer("cluster_test_out/", "${PROJECT_NAME}/test/${JOB_NAME}-${BUILD_ID}", 'nas storage')
if (currentBuild.resultIsBetterOrEqualTo('SUCCESS')) {
echo "Milvus Dev Test Out Viewer \"ftp://192.168.1.126/data/${PROJECT_NAME}/test/${JOB_NAME}-${BUILD_ID}\""
}
} else {
error("Milvus Dev Test Out directory don't exists!")
}
}
}