How can I configure Jenkins and the Artifactory Jenkins Plugin to use only TLSv1.2 with the IBM SDK?

If you are running builds in Jenkins other CI which use IBM SDK 8 and are using strictly TLSv1.2 on your load balancer, reverse proxy, or anything else between Artifactory, the IBM SDK will not use TLSv1.2 by default. You can set the following parameters in your build:

-Dhttps.protocols=TLSv1.2
-Djdk.tls.client.protocols=TLSv1.2
-Dcom.ibm.jsse2.overrideDefaultTLS=true
-Dcom.ibm.jsse2.overrideDefaultProtocol=TLSv12

You can set these parameters in the MAVEN_OPTS Of the build, see the image below for a reference to how this should look.

User-added image

After these parameters are set, assuming the load balancer, reverse proxy, etc is configured to only accept TLSv1.2, your builds should be successfully deployed on the next build.