Skip to content

Commit 093cf68

Browse files
committed
more updates
Signed-off-by: Yuanjing Xue <197832395+yuanjingx87@users.noreply.github.com>
1 parent f09864d commit 093cf68

File tree

4 files changed

+242
-2092
lines changed

4 files changed

+242
-2092
lines changed

jenkins/TensorRT_LLM_PLC.groovy

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -211,19 +211,21 @@ def pulseScan(llmRepo, branchName) {
211211
sh 'unzip -p sbom.zip "*.json" > sbom_toupload.json'
212212
sh "cat sbom_toupload.json"
213213
withCredentials([string(credentialsId: 'trtllm_plc_slack_webhook', variable: 'PLC_SLACK_WEBHOOK')]) {
214-
def ELASTICSEARCH_URL = "http://nvdataflow.nvidia.com/dataflow2/swdl-tensorrt/posting"
215-
def TRTLLM_ES_INDEX_BASE = "df-swdl-tensorrt-trtllm-plc"
214+
def ELASTICSEARCH_POST_URL = "http://nvdataflow.nvidia.com/dataflow/swdl-tensorrt-infra-plc/posting"
215+
def ELASTICSEARCH_QUERY_URL = "https://gpuwa.nvidia.com/elasticsearch"
216+
def TRTLLM_ES_INDEX_BASE = "df-swdl-tensorrt-infra-plc"
216217
def jobPath = env.JOB_NAME.replaceAll("/", "%2F")
217218
def pipelineUrl = "${env.JENKINS_URL}blue/organizations/jenkins/${jobPath}/detail/${jobPath}/${env.BUILD_NUMBER}/pipeline"
218219
withEnv([
219-
"TRTLLM_ES_URL=${ELASTICSEARCH_URL}",
220+
"TRTLLM_ES_POST_URL=${ELASTICSEARCH_POST_URL}",
221+
"TRTLLM_ES_QUERY_URL=${ELASTICSEARCH_QUERY_URL}",
220222
"TRTLLM_ES_INDEX_BASE=${TRTLLM_ES_INDEX_BASE}",
221223
"TRTLLM_PLC_WEBHOOK=${PLC_SLACK_WEBHOOK}"
222224
]) {
223225
sh """
224226
python3 -m venv venv
225-
venv/bin/pip install requests
226-
venv/bin/python ./jenkins/scripts/submit_vulnerability_report.py --build-url ${pipelineUrl}
227+
venv/bin/pip install requests elasticsearch==7.13.4
228+
venv/bin/python ./jenkins/scripts/submit_vulnerability_report.py --build-url ${pipelineUrl} --build-number ${env.BUILD_NUMBER} --branch ${params.branchName}
227229
"""
228230
}
229231
}
@@ -270,14 +272,14 @@ pipeline {
270272
parallel {
271273
stage("Source Code OSS Scanning"){
272274
stages {
273-
//stage("Generate Lock Files"){
274-
//steps
275-
//{
276-
//script {
277-
//generateLockFiles(env.LLM_REPO, env.BRANCH_NAME)
278-
//}
279-
//}
280-
//}
275+
stage("Generate Lock Files"){
276+
steps
277+
{
278+
script {
279+
generateLockFiles(env.LLM_REPO, env.BRANCH_NAME)
280+
}
281+
}
282+
}
281283
stage("Run Pulse Scanning"){
282284
steps
283285
{
@@ -288,14 +290,14 @@ pipeline {
288290
}
289291
}
290292
}
291-
//stage("SonarQube Code Analysis"){
292-
//steps
293-
//{
294-
//script {
295-
//sonarScan()
296-
//}
297-
//}
298-
//}
293+
stage("SonarQube Code Analysis"){
294+
steps
295+
{
296+
script {
297+
sonarScan()
298+
}
299+
}
300+
}
299301
}
300302
}
301303
} // stages

0 commit comments

Comments
 (0)