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

Add support of shared directories mapping to Windows slave services

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      A follow-up to JENKINS-17706 (see the discussion in https://github.com/jenkinsci/jenkins/pull/1136)...

        Attachments

          Activity

          Hide
          mcsf M Chon added a comment - - edited

          I am trying to set up my Windows Jenkins server to use a NetApp filer partition for workspaces.
          It seems to work OK in a Cygwin shell, but breaks in a Windows batch shell:

          Started by user jdoe
          Building in workspace \\nas02\bld101_workspaces$\jdoe_test\workspace
          [workspace] $ C:\cygwin\bin\bash.exe -xe C:\Users~SVC\AppData\Local\Temp\hudson3077854122063339861.sh
          + pwd
          //nas02/bld101_workspaces$/jdoe_test/workspace
          + touch save_bash.txt
          [workspace] $ cmd /c call C:\Users~SVC\AppData\Local\Temp\hudson527196630851665020.bat
          '\\nas02\bld101_workspaces$\joe_test\workspace'
          CMD.EXE was started with the above path as the current directory.
          UNC paths are not supported. Defaulting to Windows directory.

          C:\Windows>dir

          Show
          mcsf M Chon added a comment - - edited I am trying to set up my Windows Jenkins server to use a NetApp filer partition for workspaces. It seems to work OK in a Cygwin shell, but breaks in a Windows batch shell: Started by user jdoe Building in workspace \\nas02\bld101_workspaces$\jdoe_test\workspace [workspace] $ C:\cygwin\bin\bash.exe -xe C:\Users~SVC\AppData\Local\Temp\hudson3077854122063339861.sh + pwd //nas02/bld101_workspaces$/jdoe_test/workspace + touch save_bash.txt [workspace] $ cmd /c call C:\Users~SVC\AppData\Local\Temp\hudson527196630851665020.bat '\\nas02\bld101_workspaces$\joe_test\workspace' CMD.EXE was started with the above path as the current directory. UNC paths are not supported. Defaulting to Windows directory. C:\Windows>dir
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          This fix should become available as a part of WinSW 2.0.
          Beta version is available in https://github.com/kohsuke/winsw/releases

          Show
          oleg_nenashev Oleg Nenashev added a comment - This fix should become available as a part of WinSW 2.0. Beta version is available in https://github.com/kohsuke/winsw/releases
          Hide
          mcsf M Chon added a comment -

          awesome! Looking forward to it!

          Show
          mcsf M Chon added a comment - awesome! Looking forward to it!
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Oleg Nenashev
          Path:
          pom.xml
          http://jenkins-ci.org/commit/windows-slave-installer-module/e7e5cfb57e7289376e542d680004a763be55033b
          Log:
          Update Windows Service Wrapper from 1.18 to 2.0.1

          Addresses JENKINS-22692, JENKINS-23487 and several others.
          Full changelog: https://github.com/kohsuke/winsw/blob/master/CHANGELOG.md

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oleg Nenashev Path: pom.xml http://jenkins-ci.org/commit/windows-slave-installer-module/e7e5cfb57e7289376e542d680004a763be55033b Log: Update Windows Service Wrapper from 1.18 to 2.0.1 Addresses JENKINS-22692 , JENKINS-23487 and several others. Full changelog: https://github.com/kohsuke/winsw/blob/master/CHANGELOG.md
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Oleg Nenashev
          Path:
          core/pom.xml
          core/src/main/resources/windows-service/jenkins-slave.xml
          core/src/main/resources/windows-service/jenkins.xml
          war/pom.xml
          http://jenkins-ci.org/commit/jenkins/e698d1de41d4311bf5f8b1d2c40b591109e696e2
          Log:
          Update Windows Agent Installer to 1.7 and WinSW to 2.0.2 (#2765)

              1. WinSW changes

          The update includes many fixes and improvements, the full list is provided in the [WinSW changelog](https://github.com/kohsuke/winsw/blob/master/CHANGELOG.md). There are several issues referenced in Jenkins bugtracker:

              1. Windows Agent Installer changes
          • Adapt the default configurations to pick fixes above
          • Slave => Agent renaming where possible
              1. Jenkins core changes
          • Modify the configuration template, reference advanced options
          • Enable Runaway Process Killer by default
          • Update Windows Agent Installer to 1.7
          • Remove the obsolete jenkins-slave.xml file from the core.

          Now it is within windows-slave-installer

          • Use the deployed Snapshot for CI
          • Pick the release version of windows-slave-installer-1.7
          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oleg Nenashev Path: core/pom.xml core/src/main/resources/windows-service/jenkins-slave.xml core/src/main/resources/windows-service/jenkins.xml war/pom.xml http://jenkins-ci.org/commit/jenkins/e698d1de41d4311bf5f8b1d2c40b591109e696e2 Log: Update Windows Agent Installer to 1.7 and WinSW to 2.0.2 (#2765) WinSW changes The update includes many fixes and improvements, the full list is provided in the [WinSW changelog] ( https://github.com/kohsuke/winsw/blob/master/CHANGELOG.md ). There are several issues referenced in Jenkins bugtracker: JENKINS-22692 ( https://issues.jenkins-ci.org/browse/JENKINS-22692 ) - Connection reset issues when WinSW gets terminated due to the system shutdown JENKINS-23487 ( https://issues.jenkins-ci.org/browse/JENKINS-23487)- Support of shared directories in WinSW JENKINS-39231 ( https://issues.jenkins-ci.org/browse/JENKINS-39231 ) - Enable Runaway Process Killer by default JENKINS-39237 ( https://issues.jenkins-ci.org/browse/JENKINS-39237 ) - Auto-upgrade of JNLP agent versions on the slaves Windows Agent Installer changes Adapt the default configurations to pick fixes above Slave => Agent renaming where possible Jenkins core changes Modify the configuration template, reference advanced options Enable Runaway Process Killer by default Update Windows Agent Installer to 1.7 Remove the obsolete jenkins-slave.xml file from the core. Now it is within windows-slave-installer Use the deployed Snapshot for CI Pick the release version of windows-slave-installer-1.7
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          The feature has been released in Jenkins 2.50
          See the changelog for the documentation references

          Show
          oleg_nenashev Oleg Nenashev added a comment - The feature has been released in Jenkins 2.50 See the changelog for the documentation references

            People

            • Assignee:
              oleg_nenashev Oleg Nenashev
              Reporter:
              oleg_nenashev Oleg Nenashev
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: