From a46e87ac1c799ae21f8bdcf35dc7cfc33f14c24e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E6=8C=AF=E5=AE=87?= <> Date: Tue, 4 Feb 2025 12:15:40 +0800 Subject: [PATCH] refactor(ChangedComponentsDetector): update shell command execution to use steps.sh for consistency MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 孙振宇 <> --- .../src/com/freeleaps/devops/ChangedComponentsDetector.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/first-class-pipeline/src/com/freeleaps/devops/ChangedComponentsDetector.groovy b/first-class-pipeline/src/com/freeleaps/devops/ChangedComponentsDetector.groovy index aa7dff2a..d4e89a5e 100644 --- a/first-class-pipeline/src/com/freeleaps/devops/ChangedComponentsDetector.groovy +++ b/first-class-pipeline/src/com/freeleaps/devops/ChangedComponentsDetector.groovy @@ -13,7 +13,7 @@ class ChangedComponentsDetector { steps.dir(workspace) { // using git command to get changed files list - def changedFiles = sh(script: 'git diff --name-only HEAD~1 HEAD', returnStdout: true) + def changedFiles = steps.sh(script: 'git diff --name-only HEAD~1 HEAD', returnStdout: true) .trim() .split('\n')