Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 17 additions & 13 deletions jenkins/L0_MergeRequest.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -1365,6 +1365,23 @@ pipeline {
if (!isReleaseCheckMode && !GEN_POST_MERGE_BUILDS_ONLY) {
collectTestResults(this, testFilter)
}
stage("Upload Build Info") {
try {
def branch = env.gitlabBranch ? env.gitlabBranch : "main"
if (globalVars[GITHUB_PR_API_URL]) {
branch = "github-pr-" + globalVars[GITHUB_PR_API_URL].split('/').last()
}
def buildInfo = "commit=${env.gitlabCommit}\n" +
"branch=${branch}\n" +
"date=${new Date().format('yyyy-MM-dd HH:mm:ss z', TimeZone.getTimeZone('UTC'))}\n" +
"jenkins_url=${env.BUILD_URL}"
writeFile file: 'build_info.txt', text: buildInfo
trtllm_utils.uploadArtifacts("build_info.txt", "${UPLOAD_PATH}/")
echo "Build info: https://urm.nvidia.com/artifactory/${UPLOAD_PATH}/build_info.txt"
} catch (Exception e) {
echo "Upload Build Info failed: ${e.toString()}"
}
}
}
}
}
Expand Down Expand Up @@ -1402,18 +1419,5 @@ pipeline {
}
}
}
stage("Upload Build Info") {
steps {
script {
def buildInfo = "commit=${env.gitlabCommit}\n" +
"branch=${env.gitlabTargetBranch ?: env.BRANCH_NAME ?: 'unknown'}\n" +
"date=${new Date().format('yyyy-MM-dd HH:mm:ss z', TimeZone.getTimeZone('UTC'))}\n" +
"jenkins_url=${env.BUILD_URL}"
writeFile file: 'build_info.txt', text: buildInfo
trtllm_utils.uploadArtifacts("build_info.txt", "${UPLOAD_PATH}/")
echo "Build info: https://urm.nvidia.com/artifactory/${UPLOAD_PATH}/build_info.txt"
}
}
}
} // stages
} // pipeline
Loading