Hi,
I’d like to propose adding a Bash script to help prepare a test server or VM to be used as a Jenkins SSH agent/node.
The script would:
- create a dedicated Linux user for Jenkins, for example
jenkins
- create and secure the user’s
.ssh/authorized_keys
- allow adding the controller public key plus optional extra public keys
- install Java if it is missing
- optionally add the user to the
docker group
- lock the user password after setup
This would be useful for teams that want to turn a test VM into a Jenkins agent quickly and consistently.
The project already contains many Jenkins-related scripts, so this would fit well alongside the existing Jenkins utilities.
Suggested file name:
jenkins/setup_jenkins_agent_user.sh
or
jenkins/jenkins_setup_agent_user.sh
If helpful, I can also contribute the script itself in the same style as the existing Bash tools.
Hi,
I’d like to propose adding a Bash script to help prepare a test server or VM to be used as a Jenkins SSH agent/node.
The script would:
jenkins.ssh/authorized_keysdockergroupThis would be useful for teams that want to turn a test VM into a Jenkins agent quickly and consistently.
The project already contains many Jenkins-related scripts, so this would fit well alongside the existing Jenkins utilities.
Suggested file name:
jenkins/setup_jenkins_agent_user.shor
jenkins/jenkins_setup_agent_user.shIf helpful, I can also contribute the script itself in the same style as the existing Bash tools.