Run Bash on Windows via task hangs

XMLWordPrintable

    • 0
    • 3

      Summary

      Bamboo build process hangs when bash.exe is called from script or command task on Windows 10. It would be great if this feature is supported by Bamboo

      Environment

      • Windows 10

      Steps to Reproduce

      1. Create a script task
      2. Choose "powershell" as interpreter and Inline as Script location
      3. Add the below content
        bash -c "ls;exit"
        

      Expected Results

      The task should get successfully executed.

      Actual Results

      The build is hung and it couldn't exit from Bash.

      Notes

      When we run the same command from Powershell or cmd.exe, it invokes bash and exits promptly.

      Workaround

      There is no workaround for now. We have to avoid using bash.exe and run native powershell codes.

            Assignee:
            Unassigned
            Reporter:
            Jeyanthan I (Inactive)
            Votes:
            11 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: