Jenkins Slave Authentication

Note that the following applies to a Windows Slave connecting to a Linux master.

When implementing authentication with Jenkins and using slaves, it is important to allow slaves to authenticate to the master in order to continue working. When using the JNLP protocol with slaves, the following may be done to authenticate slaves to the master:

1. Edit the jenkins-slave.xml to reflect the following arguments — append to the end:

-classpath "%BASE%\lib\commons-codec-1.5.jar" -jnlpCredentials username:password -noCertificateCheck

Once that is complete, download the common-codec-1.5.jar and place in the lib directory within the jenkins slave working directory (you will have to create this if it does not yet exist).

Download from:
http://commons.apache.org/codec/download_codec.cgi

Next, restart the Jenkins Slave service on the slave and verify.

Leave a Reply

Your email address will not be published. Required fields are marked *