-
New Feature
-
Resolution: Fixed
-
Minor
-
None
This is a request that this pull request is ported to allow init scripts to modify user and group attributes for a VM Agent.
This would allow my init script to set up Docker access for the jenkins user, for example
- is related to
-
JENKINS-37160 Session should reset after init script has been executed
-
- Closed
-
- relates to
-
JENKINS-69457 Reconnect after init.sh script runs
-
- Open
-
Code changed in jenkins
User: R. Tyler Croy
Path:
src/main/java/com/microsoft/azure/remote/AzureVMAgentSSHLauncher.java
http://jenkins-ci.org/commit/azure-vm-agents-plugin/e0c852a4fd5b2108cf8bfec3fb6b8b289eaa5ffe
Log:
Force a new session to be created after running the init script to pick up new settings
In scenarios where new shells, groups, user settings or other environmental
changes which are made by the 'Init Script', this patch will ensure that the
launching of the `slave.jar` will pick those changes as part of the launched
Jenkins agent
Fixes
JENKINS-40291