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

Windows sshInit.ps1 doesn't work on Windows Server Core

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • _unsorted
    • None
    • Windows Server version 1709
      Jenkins deployed in Linux VM from Azure marketplace

      I'm trying to deploy build agents that are running Windows Server version 1709, which is shipped as Server Core only. This is great because it's faster and smaller which is perfect for a build agent. 

      Unfortunately, the script that's used to install SSH relies on the Windows shell APIs to extract a ZIP file. This isn't a recommended way to extract ZIPs and it breaks on core. Expand-Archive is the right command to use instead.

       

      Here's the image I'm using:

      • offer WindowsServerSemiAnnual
      • publisher MicrosoftWindowsServer
      • sku Datacenter-Core-1709-smalldisk
      • version latest

       

       

      The bug is here: https://github.com/jenkinsci/azure-vm-agents-plugin/blob/1ca07d466f514b268016c4352ca077abe965eb46/src/main/resources/scripts/sshInit.ps1#L13

            zackliu Chenyang Liu
            patricklang Patrick Lang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: