Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-19920

Improve error message when Powershell is not available

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • None
    • Logs, Tasks, Windows
    • None
    • 0
    • 1
    • 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.

      Problem Definition

      When powershell is not available the following error can be seen in the build logs:

      Failing task since return code of [powershell -ExecutionPolicy bypass -Command C:\Users\xxx\AppData\Local\Temp\56328195-56426502-55312562-ScriptBuildTask-4818059119502732407.ps1] was -1 while expected 0

      This error is not helpful to diagnose that poswershell is not available in the agent.

      Suggested Solution

      Treat this error to show what is actually happening. The command is not available.

            Unassigned Unassigned
            dsantos Daniel Santos (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: