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

Better handle PowerShell command execution in Bamboo

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • None
    • Tasks
    • None
    • 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

      Issue Summary

      Currently, Bamboo is only looking for a successful response code with a PowerShell script. So, by default, if you run a PowerShell script task with some non existing command, Bamboo will mark this task as successful.

      Steps to Reproduce

      1. Create a script task with powershell interpreter and coma content like "idonotexist"
      2. Run the plan

      Expected Results

      Script task fails

      Actual Results

      Script task is green even though the above command will cause an error.

      Workaround

      There's a workaround of handing errors in a PowerShell script, for example, check exit code of commands or/and set $ErrorActionPreference = "Stop"

      Attachments

        Activity

          People

            Unassigned Unassigned
            c64f33b2bce3 Yevhen
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: