Skip to content

Add Native Windows OpenSSH Server and Powershell support for Virtualbox and Parallels executors

What does this MR do?

Add Native Windows OpenSSH Server and Powershell support for Virtualbox Executor

Why was this MR needed?

Cygwin sometimes doesn't work properly with other tools, IDEs

What's the best way to test this MR?

Prepare a Virtualbox Windows 10/11 VM named win_sshd_pwsh, create a snapshot sshd_git

Register and Configure a gitlab-runner as:

[[runners]]
  name = "..."
  url = "https://gitlab.com/"
  token = "X"
  executor = "virtualbox"
  shell = "pwsh"
  [runners.custom_build_dir]
  [runners.cache]
    [runners.cache.s3]
    [runners.cache.gcs]
    [runners.cache.azure]
  [runners.virtualbox]
    base_name = "win_sshd_pwsh"
    base_snapshot = "sshd_git"
    disable_snapshots = true
  [runners.ssh]
    user = "..."
    password = "..."
	port = "22"

CI/CD Configuration .gitlab-ci.yml

test_vm_win_sshd_pwsh_git:
  tags:
    - your-runner-tag
  script:
    - $PSVersionTable

What are the relevant issue numbers?

Solves #9465

Edited by Pedro Pombeiro

Merge request reports

Loading