Authenticate agent running connected to the master through the swarm plugin

I have a quite simple setup where Jenkins master has the swarm plugin installed and uses it to auto-connect agents. Master has  a simple 


setup with a well-known username and password that the agent's swarm-CLI passes to the master. The swarm CLI options look like 

-master http://master:8080 -username ${JENKINS_ADMIN_USERNAME} -password ${JENKINS_ADMIN_PASSWORD} -labels 'docker' -executors ${JENKINS_AGENT_EXECUTORS}

Now I need to switch the realm to a realm provided by the Google Login plugin so all my user from my Google apps domain can login to Jenkins.

What is a working way to connect the agent to the master since now I have no well known user/password?

Can I use multiple realms at the same time?

1 comment

Please sign in to leave a comment.