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

Reconnect the session after the init.sh script runs

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Minor Minor
    • _unsorted
    • 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

          [JENKINS-40291] Reconnect the session after the init.sh script runs

          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

          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

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

              Created:
              Updated:
              Resolved: