gretard / sonar-ps-plugin

Powershell language plugin for SonarQube
GNU Lesser General Public License v3.0
37 stars 7 forks source link

Windows: Cannot run program "/usr/bin/pwsh" #25

Closed ElenaShlykova closed 3 years ago

ElenaShlykova commented 3 years ago

Hello! We have a build machine with Windows server 2016 where we run sonarqube analysis. We would like to analyze ps scripts, so we installed your plugin on our sonar server. But when we run sonar analysis we receive such an error for ps scripts:

image

Is there any workaround?

gretard commented 3 years ago

Hi,

Seems that plugin detected your OS as Linux. In this case - please update the path to powershell executable in the administration settings. If on your build machine path will be different, then you will need to specify it for the sonar plugin directly as build properties :)

Please let me know if this helped.

On Fri, 16 Jul 2021, 03:05 Alena Shlykova, @.***> wrote:

Hello! We have a build machine with Windows server 2016 where we run sonarqube analysis. We would like to analyze ps scripts, so we installed your plugin on our sonar server. But when we run sonar analysis we receive such an error for ps scripts:

[image: image] https://user-images.githubusercontent.com/61818651/125872687-38948644-97f2-481d-bbd6-7330297f83e8.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/gretard/sonar-ps-plugin/issues/25, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE3VN7EMVI5GNHYOZWSD4ILTX5ZUVANCNFSM5AORDC3Q .