Uploaded image for project: 'Bamboo'
  1. Bamboo
  2. BAM-18870

Run Bash on Windows via task hangs

    XMLWordPrintable

    Details

    • UIS:
      0
    • Support reference count:
      1
    • Feedback Policy:

      Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            jinbasekaran Jeyanthan I
            Votes:
            9 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated: