When triggered using Jenkins pipeline sfdx-git-delta is not recognized but recognized using Git Bash / Visual Studio Code / CMD #317
Labels
dependencies
Pull requests that update a dependency file
Hello,
I am trying to integrate sfdx-git-delta plugins in my Jenkins CI / CD Pipeline. I have installed sfdx-git-delta plugin using below command.
sfdx plugins:install sfdx-git-delta
Post installation I have confirmed the same with sfdx plugins and I see the latest version has been installed.
I am able to get package/package.xml when I execute below command using either Visual Studio Code or Git Bash or CMD,
sfdx sgd:source:delta --to "HEAD" --from "HEAD^" --output .
However, when I use same commands in Jenkins pipeline, I get error message as mentioned below,
To debug the issue, I tried to echo installed plugins using "sfdx plugins" in Jenkins pipeline script and I see below message stating that "no plugins are installed"
I tried to navigate in Jenkins workspace using git bash and execute command to list sfdx plugins and I see the that latest plugin is installed.
Can anyone help me to understand what I am missing here ? As Jenkins is installed on the same machine on which SFDX CLI and sfdx-git-delta plugin is installed. Also, I have added path of SFDX CLI in Jenkins custom tool configuration.
Any help / suggestions are highly welcomed.
Thanks!
The text was updated successfully, but these errors were encountered: