Salesforce auth behind the proxy: force:auth:jwt:grant

12 views
Skip to first unread message

Pedro Garcia

unread,
Jun 4, 2020, 2:36:54 PM6/4/20
to Jenkins Users
Hi...

I just started in Jenkins and it's a beginner question.

I've tried to run a Salesforce job from Jenkins, I got an error when I try to authorize a salesforce org using JWT flow... force:auth:jwt:grant

I installed Jenkins server in my PC, it's behind a proxy.

Here is my command line sentence:

NOTE: I've changed credentials and sensitive data in the sentence posted. The original sentence works very well in the CMD but not in Jenkins

echo THE JOB STARTED

"C:\Salesforce CLI\bin\sfdx" force:auth:jwt:grant --clientid MYCLIENID-WL23L4J2O42E342 --jwtkeyfile c:\openssl\bin\server.key --username mysale...@username.com --instanceurl https://mysalesforceurl.my.salesforce.com --setdefaultdevhubusername -a my_alias_jenkins

echo CONNECTED!

"C:\Salesforce CLI\bin\sfdx" "force:org:list" 

echo DONE!!!!!!

Here is the error
ERROR running force:auth:jwt:grant:  tunneling socket could not be established, cause=write EPROTO 11692:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:c:\ws\deps\openssl\openssl\ssl\record\ssl3_record.c:252:

Build step 'Execute Windows batch command' marked build as failure
Finished: FAILURE


Thanks
Reply all
Reply to author
Forward
0 new messages