Skip to content

Commit 2708bbb

Browse files
committed
Clean up
Signed-off-by: Yuanjing Xue <197832395+yuanjingx87@users.noreply.github.com>
1 parent 8a9168e commit 2708bbb

File tree

4 files changed

+4
-23
lines changed

4 files changed

+4
-23
lines changed

jenkins/TensorRT_LLM_PLC.groovy

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -297,17 +297,14 @@ def processScanResults(branchName) {
297297
"TRTLLM_ES_INDEX_PREAPPROVED_BASE=${TRTLLM_ES_INDEX_PREAPPROVED_BASE}",
298298
"TRTLLM_PLC_WEBHOOK=${PLC_SLACK_WEBHOOK}"
299299
]) {
300-
def reportPath = "${pwd()}/scan_report"
301-
sh "ls ${reportPath}"
302300
sh """
303-
printenv
304301
python3 -m venv venv
305302
venv/bin/pip install requests elasticsearch==7.13.4
306303
venv/bin/python ./jenkins/scripts/pulse_in_pipeline_scanning/main.py \
307304
--build-url ${pipelineUrl} \
308305
--build-number ${env.BUILD_NUMBER} \
309306
--branch ${branchName} \
310-
--report-directory ${reportPath}
307+
--report-directory ${pwd()}/scan_report
311308
"""
312309
}
313310
}

jenkins/scripts/get_image_key_to_tag.sh

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,5 @@
11
#!/bin/bash
22

3-
# Copyright 2026, NVIDIA CORPORATION & AFFILIATES
4-
#
5-
# Licensed under the Apache License, Version 2.0 (the "License");
6-
# you may not use this file except in compliance with the License.
7-
# You may obtain a copy of the License at
8-
#
9-
# http://www.apache.org/licenses/LICENSE-2.0
10-
#
11-
# Unless required by applicable law or agreed to in writing, software
12-
# distributed under the License is distributed on an "AS IS" BASIS,
13-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14-
# See the License for the specific language governing permissions and
15-
# limitations under the License.
16-
17-
# Script to fetch imageKeyToTag.json from the latest L0_PostMerge build for a given branch.
18-
# Usage: ./get_image_key_to_tag.sh <branch_name>
19-
# Output: imageKeyToTag.json content to stdout
20-
213
set -e
224

235
BRANCH_NAME="${1}"

jenkins/scripts/pulse_in_pipeline_scanning/main.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,10 @@ def process_container_result():
105105
)
106106

107107
if NEW_RISKY_DEPENDENCIES:
108+
print(", ".join(NEW_RISKY_DEPENDENCIES))
108109
post_slack_msg(args.build_number, args.branch, ", ".join(NEW_RISKY_DEPENDENCIES))
110+
else:
111+
print("No new risk involved")
109112

110113

111114
if __name__ == "__main__":

jenkins/scripts/pulse_in_pipeline_scanning/utils/slack.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77

88
def post_slack_msg(build_number, branch, risk_detail):
9-
print(risk_detail)
109
SLACK_WEBHOOK_URL = os.environ.get("TRTLLM_PLC_WEBHOOK")
1110
if not SLACK_WEBHOOK_URL:
1211
raise EnvironmentError("Error: Environment variable 'SLACK_WEBHOOK_URL' is not set!")

0 commit comments

Comments
 (0)