Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-40291

Reconnect the session after the init.sh script runs

    Details

    • Similar Issues:

      Description

      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

        Attachments

          Issue Links

            Activity

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            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

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - 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

              People

              • Assignee:
                clguiman Claudiu Guiman
                Reporter:
                rtyler R. Tyler Croy
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: