Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing and running the plugin on a Jenkins Windows node #2

Open
Rambrant opened this issue Mar 13, 2024 · 0 comments
Open

Installing and running the plugin on a Jenkins Windows node #2

Rambrant opened this issue Mar 13, 2024 · 0 comments

Comments

@Rambrant
Copy link

I successfully use this on my Linux nodes but have problems on the windows ones. I get the following error when I try to use it.

 plugin error: exit: fork/exec C:\Windows\system32\config\systemprofile\.trivy\plugins\sonarqube\sonarqube.py: %1 is not a valid Win32 application.
09:32:18  At D:\Jenkins_data\workspace\bkslb\sonar-test@tmp\durable-375653e6\powershellWrapper.ps1:3 char:1
09:32:18  + & powershell -NoProfile -NonInteractive -ExecutionPolicy Bypass -Comm ...
09:32:18  + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
09:32:18      + CategoryInfo          : NotSpecified: (Error: plugin e...32 application.:String) [], RemoteException
09:32:18      + FullyQualifiedErrorId : NativeCommandError
09:32:18   
09:32:18  Usage:
09:32:18    trivy sonarqube [flags]
...

Python is installed and is in the PATH environment variable. I'm severly limited when it comes to windows :-) The only thing I can imagine is the shebang

#!/usr/bin/env python3

It looks very 'Linuxy'

Happy for any help I can get

/Thomas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant