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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

Pedro Garcia
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
set HTTPS_PROXY=https://mylogin:[hidden email]:8080
set HTTP_PROXY=https://mylogin:[hidden email]:8080

"C:\Salesforce CLI\bin\sfdx" force:auth:jwt:grant --clientid MYCLIENID-WL23L4J2O42E342 --jwtkeyfile c:\openssl\bin\server.key --username [hidden email] --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

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/3dbccff5-fe83-49c2-9653-21de4291f854%40googlegroups.com.