Multiple questions on Jenkins plugin repo management

2024-03-20 Thread Stéphane BOBIN
Hello!

   - I got a PR recently to modernize my plugin (thanks Alex). I now can
   see multiple GitHub actions running when I push new code to my plugin.
  - I am puzzled because the PR was done on jenkinsci repo for my
  plugin (
  https://github.com/jenkinsci/mathworks-polyspace-plugin/actions),
  which is a sync of the main repo, and all actions worked fine here.
  - While on the mathworks repo for my plugin, which is the main repo (
  https://github.com/mathworks/mathworks-polyspace-plugin/actions),
  there is a recurring failure on ".github/workflows/release-drafter.yml".
  - What does that mean? How can I fix?
   - It looks like the Jenkins release page (
   https://plugins.jenkins.io/mathworks-polyspace/releases/) is the page
   where one creates the details on a new release to be displayed on the
   Jenkins release page (
   https://plugins.jenkins.io/mathworks-polyspace/releases/).
  - Correct?
  - Where to find the icons?
  - What is the icon/tag spec (rocket/new features, ghost/maintenance,
  caterpillar/bug fixes, ...)?
  - Some documentation available about this?

Thanks for your inlights!

Stéphane

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CAMQQ2s%3DWT8c31EZTEhvLtH9hXU8UXPeDdG-qLveq_aKRWXp8rA%40mail.gmail.com.


Re: Error in Javadoc when attempting to publish a new plugin version

2024-03-05 Thread Stéphane BOBIN
Hi Basil!

Great, thanks, I will try that 

-- Stéphane

Le mar. 5 mars 2024 à 18:09, Basil Crow  a écrit :

> You can reproduce locally by running mvn clean verify -Pjenkins-release
> and on CI by enabling incrementals
> .
> Be sure to use the same version of Java you intend to use when doing the
> release, as different Java versions produce different errors.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-dev+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-dev/CAFwNDjqEWaYB9Kb21Mkzr9VCW9H8v6%2BG%3Dr6_UpuaGg3PyTUTnA%40mail.gmail.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CAMQQ2s%3Dz9Y2%2B8n7Dh32swKG6vpUQ53ZbCkWeaptJXW4nS1mReg%40mail.gmail.com.


Error in Javadoc when attempting to publish a new plugin version

2024-03-05 Thread Stéphane BOBIN
Hi all!

Sorry, it is probably a newbie question. I was just attempting to publish a 
new version of my plugin (mvn release:prepare release:perform) and I got 
plenty of errors in the Javadoc I recently added in my code. I didn't have 
these errors while building and testing (mvn clean install). 

   - How can I get the errors sooner in my workflow?
   - Can I run "mvn release:prepare" safely to get these errors before 
   without running remote stuff and getting into a wrong state?

Thanks for your help.

Stephane

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/6478e6ac-8e49-43fd-b12a-dd007dcb4c22n%40googlegroups.com.


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 mars 2024 à 00:40, 'Daniel Beck' via Jenkins Developers <
jenkinsci-dev@googlegroups.com> a écrit :

>
>
> On Fri, Mar 1, 2024 at 11:43 PM Stéphane BOBIN <
> stephane.bobin...@gmail.com> 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 of the
> plugin, integrate them as tools into Jenkins (ToolInstallation /
> ToolInstaller), implement their functionality as build step(s), provide a
> build step to copy them to the workspace, or make them available for
> download from Jenkins like the agent.jar (with some care to not allow
> downloading anything else).
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-dev+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-dev/CAMo7PtJ%2BvW36L2Qhf4gqc2ebO09UQV7WweWByduxgpsXwhT9Pg%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-dev/CAMo7PtJ%2BvW36L2Qhf4gqc2ebO09UQV7WweWByduxgpsXwhT9Pg%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CAMQQ2smfvD2JnTjCFrFWP4sSXgZgf9cOsQ_WPPTQ5S_m-tS3Jw%40mail.gmail.com.


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 call
utilities from the plugin?

Thanks for your help!

-- Stéphane BOBIN

Le ven. 1 mars 2024 à 19:26, Basil Crow  a écrit :

> 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" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-dev+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-dev/CAFwNDjpDZynbXQfmPXqTX1sTBrq7Ot2ZhY%2B2c18U6JZMcSSOcg%40mail.gmail.com
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CAMQQ2smu_YDrGGPjHrenaao0u-2u%3DJVYJXVqCQfx1wcjgDF-mw%40mail.gmail.com.


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

2024-03-01 Thread Stéphane BOBIN
Hi!

I develop the Mathworks Polyspace plugin: 
https://github.com/jenkinsci/mathworks-polyspace-plugin. 

I have some helpers in my plugin to allow the users to call some utilities 
in the plugin from their script. It was working since the beginning but I 
recently realized it was not anymore. 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 by: java.lang.ClassNotFoundException: 
com.mathworks.polyspace.jenkins.PolyspaceHelpers
 
When I call them from the server command line, it works:
 
> java -cp 
/var/lib/jenkins/plugins/mathworks-polyspace/WEB-INF/lib/mathworks-polyspace.jar
 
com.mathworks.polyspace.jenkins.PolyspaceHelpers
Usage: ps_helper -report-filter   
[] [ ]+
Usage: ps_helper -report-status  
Usage: ps_helper -report-count-findings 
Usage: ps_helper -print-runid 
Usage: ps_helper -print-projectid 
Usage: ps_helper -print-projecturl  
 
I checked the problem show even with my oldest plugin version which was 
supposed to work from the beginning. Anything has changed on Jenkins’ side 
with newer versions? Is there anything recently that forbids calling 
helpers from a job that way?

Any help understanding what is happening would be welcome!

Stéphane

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/d1c55a2d-bcc4-47b4-9e22-82d6b08aefbdn%40googlegroups.com.