jx: jx boot fails on Windows 10

Summary

When running jx boot on Windows it tries to execute /bin/sh in step validate-git. This obviously fails.

Same as #7035

Steps to reproduce the behavior

execute jx boot on Windows in powershell

Expected behavior

set up jenkins x

Actual behavior

Booting Jenkins X
WARNING: failed to load ConfigMap jenkins-x-docker-registry in namespace jx: failed to get configmap jenkins-x-docker-registry in namespace jx, configmaps "jenkins-x-docker-registry" not found
WARNING: failed to load ConfigMap jenkins-x-docker-registry in namespace jx: failed to get configmap jenkins-x-docker-registry in namespace jx, configmaps "jenkins-x-docker-registry" not found

STEP: validate-git command: /bin/sh -c jx step git validate in dir: C:\Projects\JenkinsX\jenkins-x-boot-config\workspace\source\workspace\source\env

error: failed to interpret pipeline file jenkins-x.yml: failed to run '/bin/sh -c jx step git validate' command in directory 'workspace\source\workspace\source\env', output: ''

Jx version

The output of jx version is:

NAME               VERSION
jx                 2.1.24
Kubernetes cluster v1.15.10
kubectl            v1.15.5
git                2.24.1.windows.2
Operating System   Windows 10 Pro 1909 build 18363

Kubernetes cluster

AKS - azure-cli

Operating system / Environment

Windows 10/Powershell

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 2
  • Comments: 23 (13 by maintainers)

Most upvoted comments

Agreed @Woland2k. We’re largely still recovering a bit from migrating to the configuration-driven approach to deploying Jenkins X to a cluster ( jx boot ) and thus Windows jx client support has not been well cared for.