@@ -22,7 +22,6 @@ def createKubernetesPodConfig(image, arch = "amd64")
2222 apiVersion: v1
2323 kind: Pod
2424 spec:
25- qosClass: Guaranteed
2625 nodeSelector:
2726 nvidia.com/node_type: builder
2827 kubernetes.io/os: linux
@@ -83,9 +82,9 @@ pipeline {
8382 string(name : " BRANCH" , defaultValue : " main" , description : " Branch to checkout." )
8483 string(name : " OPEN_SEARCH_PROJECT_NAME" , defaultValue : " swdl-trtllm-infra-ci-prod-perf_sanity_info" , description : " OpenSearch project name." )
8584 string(name : " OPERATION" , defaultValue : " " , description : " Operation to perform." )
85+ string(name : " QUERY_JOB_NUMBER" , defaultValue : " 1" , description : " Number of latest jobs to query." )
8686 string(name : " SLACK_CHANNEL_ID" , defaultValue : " " , description : " Slack channel IDs to send messages to." )
87- string(name : " SLACK_BOT_TOKEN" , defaultValue : " " , description : " Slack bot token for authentication." )
88- string(name : " QUERY_JOB_NUMBER" , defaultValue : " " , description : " Number of latest jobs to query." )
87+ credentials(name : " SLACK_BOT_TOKEN" , defaultValue : " " , description : " Slack bot token credential ID for authentication." , credentialType : ' org.jenkinsci.plugins.plaincredentials.impl.StringCredentialsImpl' )
8988 }
9089 stages {
9190 stage(" Run Perf Sanity Script" ) {
@@ -96,14 +95,16 @@ pipeline {
9695 sh " env | sort"
9796 trtllm_utils. checkoutSource(LLM_REPO , params. BRANCH , LLM_ROOT , false , false )
9897 sh " pip install slack_sdk"
99- sh """
100- cd ${ LLM_ROOT} /jenkins/scripts/perf && ls -alh && python3 perf_sanity_triage.py \
101- --project_name "${ params.OPEN_SEARCH_PROJECT_NAME} " \
102- --operation "${ params.OPERATION} " \
103- --channel_id "${ params.SLACK_CHANNEL_ID} " \
104- --bot_token "${ params.SLACK_BOT_TOKEN} " \
105- --query_job_number "${ params.QUERY_JOB_NUMBER} "
106- """
98+ withCredentials([string(credentialsId : params. SLACK_BOT_TOKEN , variable : ' SLACK_TOKEN' )]) {
99+ sh """
100+ cd ${ LLM_ROOT} /jenkins/scripts/perf && ls -alh && python3 perf_sanity_triage.py \
101+ --project_name "${ params.OPEN_SEARCH_PROJECT_NAME} " \
102+ --operation "${ params.OPERATION} " \
103+ --channel_id "${ params.SLACK_CHANNEL_ID} " \
104+ --bot_token "\$ {SLACK_TOKEN}" \
105+ --query_job_number "${ params.QUERY_JOB_NUMBER} "
106+ """
107+ }
107108 }
108109 }
109110 }
0 commit comments