refactor(ChangedComponentsDetector): update shell command execution to use steps.sh for consistency
Signed-off-by: 孙振宇 <>
This commit is contained in:
parent
aa7d449616
commit
a46e87ac1c
@ -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')
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user