File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1392,7 +1392,20 @@ pipeline {
13921392 def analysis = trtllm_utils. analyzePipelineFailureWithAgent(
13931393 this , env. JOB_NAME , env. BUILD_NUMBER , prNumber)
13941394 if (analysis) {
1395- echo " === CI Agent Failure Analysis ===\n ${ analysis} "
1395+ writeFile file : ' ci_agent_analysis.txt' , text : analysis
1396+ def bucket = ' sw-tensorrt-ci-analysis'
1397+ def key = " ${ env.JOB_NAME} /${ env.BUILD_NUMBER} /failure_analysis.txt"
1398+ container(" alpine" ) {
1399+ trtllm_utils. llmExecStepWithRetry(this , script : ' apk add --no-cache aws-cli' )
1400+ withCredentials([string(
1401+ credentialsId : ' svc_tensorrt-swift-stack-key' ,
1402+ variable : ' AWS_SECRET_ACCESS_KEY' )]) {
1403+ trtllm_utils. llmExecStepWithRetry(this , script :
1404+ " AWS_ACCESS_KEY_ID=svc_tensorrt aws s3 cp ci_agent_analysis.txt" +
1405+ " s3://${ bucket} /${ key} --endpoint-url https://pbss.s8k.io" )
1406+ }
1407+ }
1408+ echo " CI Agent Failure Analysis: https://pbss.s8k.io/${ bucket} /${ key} "
13961409 }
13971410 } catch (Exception e) {
13981411 // Analysis is best-effort; do not fail the pipeline
You can’t perform that action at this time.
0 commit comments