Powershell with Bamboo

ghaing March 22, 2019

When running deployments I am receiving an error:

invoke-sqlcmd : The term 'invoke-sqlcmd' is not recognized as the name of a
cmdlet, function, script file, or operable program

However, when run locally on the same server this executes in PowerShell no problem. I want to check and confirm what version of PowerShell executable is being used by Bamboo when deployments are run to ensure they are they same and rule out this being the issue.

1 answer

0 votes
Charlie Misonne
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 22, 2019

I'm not a powershell expert but is invoke-sqlcmd available on the path for bamboo? Try using the full path to command to check.

I also found this stackoverflow thread that could be useful.

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events