Re: Error: Could not find or load main class com.mathworks.polyspace.jenkins.PolyspaceHelpers

2024-03-04 Thread Baptiste Mathus
o/ Usually the best way to implement something is to look at how other plugins are doing it. The easiest way to find these existing implems is using https://www.jenkins.io/doc/developer/extensions/jenkins-core/#toolinstallation Then, beware to read a few examples of ideally well-known plugins

Re: Error: Could not find or load main class com.mathworks.polyspace.jenkins.PolyspaceHelpers

2024-03-02 Thread Stéphane BOBIN
Hi Daniel! I like the idea. Do you have some more guidance, please? I found this: https://javadoc.jenkins.io/hudson/tools/ToolInstallation.html. But it does not explain a lot. Can you point me to the doc for the various items you suggest? A big thanks for your help! -- Stéphane BOBIN Le sam. 2

Re: Error: Could not find or load main class com.mathworks.polyspace.jenkins.PolyspaceHelpers

2024-03-01 Thread 'Daniel Beck' via Jenkins Developers
On Fri, Mar 1, 2024 at 11:43 PM Stéphane BOBIN wrote: > - What is the recommended and secure way to have scripts on agents to call > utilities from the plugin? > It's not a common enough use case to have a general recommendation. Some ideas: publish the utilities separately rather than as part

Re: Error: Could not find or load main class com.mathworks.polyspace.jenkins.PolyspaceHelpers

2024-03-01 Thread Stéphane BOBIN
Hi Basil, Thanks for your prompt answer and the link. It makes sense and it seems to explain my problem. However, I couldn't find anything on how to move forward on this. Would you please point me to the right direction on: - What is the recommended and secure way to have scripts on agents to

Re: Error: Could not find or load main class com.mathworks.polyspace.jenkins.PolyspaceHelpers

2024-03-01 Thread Basil Crow
This seems to assume the build is running on the built-in node, something we no longer recommend: https://www.jenkins.io/doc/book/security/controller-isolation/#not-building-on-the-built-in-node -- You received this message because you are subscribed to the Google Groups "Jenkins Developers"

Error: Could not find or load main class com.mathworks.polyspace.jenkins.PolyspaceHelpers

2024-03-01 Thread Stéphane BOBIN
. When I call them from a job in Jenkins, it fails: java -cp /var/lib/jenkins/plugins/mathworks-polyspace/WEB-INF/lib/mathworks-polyspace.jar com.mathworks.polyspace.jenkins.PolyspaceHelpers Error: Could not find or load main class com.mathworks.polyspace.jenkins.PolyspaceHelpers Caused