• Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • None
    • Tasks
    • None
    • 3
    • 2
    • 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.

      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"

            [BAM-21162] Better handle PowerShell command execution in Bamboo

            SET Analytics Bot made changes -
            Support reference count New: 2
            SET Analytics Bot made changes -
            UIS Original: 2 New: 3
            SET Analytics Bot made changes -
            UIS New: 2
            Victor Debone made changes -
            Link New: This issue is related to BAM-26065 [ BAM-26065 ]
            Alexey Chystoprudov made changes -
            Remote Link New: This issue links to "+core+ Dogfooding › TBD Test Git Branch Detection › ktlo-BAM-21162_revertion (tardigrade-bamboo)" [ 1001610 ]
            Alexey Chystoprudov made changes -
            Fix Version/s Original: 10.2.2 [ 110830 ]
            Fix Version/s Original: 11.0.0 [ 110791 ]
            Alexey Chystoprudov made changes -
            Resolution Original: Fixed [ 1 ]
            Status Original: Closed [ 6 ] New: Gathering Interest [ 11772 ]
            Eduardo Alvarenga (Inactive) made changes -
            Fix Version/s New: 11.0.0 [ 110791 ]
            Alexey Chystoprudov made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Waiting for Release [ 12075 ] New: Closed [ 6 ]
            Eduardo Alvarenga (Inactive) made changes -
            Status Original: In Progress [ 3 ] New: Waiting for Release [ 12075 ]

              73868399605e Eduardo Alvarenga (Inactive)
              c64f33b2bce3 Yevhen
              Votes:
              4 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: