Add function for retrieving secret token from Jenkins master.

Created a function for pulling the secret token from Jenkins master.