| I have an identical issue. In addition to the bug description and the comment by Manoj P:
- I am using Jenkins v2.219
- I am using Custom Tools plugin v0.7 in Jenkins to install sfdx (see link #1 below), such that I can use Jenkins in the Build section to Execute Windows batch commands (see link #2 below).
I am able to authorize into Salesforce via the connected app from command prompt with client id (consumer key), username and secret file, as described in this video (see link #4 below, visual guide of link #3). I tried Yevhenii Riabinin's suggestion on escaping the secret file with quotes (\"). It didn't work, and a different error was thrown: The flag value ""C:\Program" is not in the correct format for "filepath." If it is relevant, I have been following the below guides:
- https://medium.com/@r.kurchenko/install-salesforcedx-cli-for-jenkins-builds-2e89495cc80b
- https://medium.com/@karthick.shanmugam0689/continous-differential-deployment-with-salesforce-dx-and-jenkins-24ab3192163f
- http://amitsalesforce.blogspot.com/2019/01/continuous-integration-using-jenkins-with-salesforceDx.html
- https://youtu.be/IvTlx6lBkQY?t=755 - see from 12:02.
|