TODO-Plugin guidance

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

TODO-Plugin guidance

Ronald Petty
Hello,

I could be living in the past, but I am trying to get the old `mvn hpi:...` to work and it seems it has changed.  I found a page saying we should use this method here:

mvn archetype:generate -B -DarchetypeGroupId=io.jenkins.archetypes -DarchetypeArtifactId=hello-world-plugin -DarchetypeVersion=1.4 -DartifactId=first

mvn hpi:run

Things start up, and I see the TODO plugin installed, but the Hello World Builder is now gone.  No errors appear on start in the log.

Can someone point me to a fool proof hello-world (TODO) tutorial for Jenkins 2.115 development?

I appreciate the help.

Regards.

Ron

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/b669b566-eb39-4b24-b76b-3965e14fa7e2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: TODO-Plugin guidance

Baptiste MATHUS
Cool you're trying this! Welcome!

You should follow https://jenkins.io/doc/developer/tutorial/create/ then IIUC you will want to choose the (as of now) choice number 2: 

"2: remote -> io.jenkins.archetypes:hello-world-plugin (Skeleton of a Jenkins plugin with a POM and an example build step.)"

FWIW, just tested it and it worked perfectly for me:

Démarré par l'utilisateur anonymous
Building in workspace [...]/dev/tmp/2018-04-11T09h44m51+0200-/blah/work/workspace/fgfdffd
Hello, baptiste!
Finished: SUCCESS

In the end, it /should/ be the very same as what you typed, but well, better follow the documentation if you're still learning the basics. For you, and to give us the opportunity to improve/fix the documentation for newcomers :).

Cheers

2018-04-11 5:46 GMT+02:00 Ronald Petty <[hidden email]>:
Hello,

I could be living in the past, but I am trying to get the old `mvn hpi:...` to work and it seems it has changed.  I found a page saying we should use this method here:

mvn archetype:generate -B -DarchetypeGroupId=io.jenkins.archetypes -DarchetypeArtifactId=hello-world-plugin -DarchetypeVersion=1.4 -DartifactId=first

mvn hpi:run

Things start up, and I see the TODO plugin installed, but the Hello World Builder is now gone.  No errors appear on start in the log.

Can someone point me to a fool proof hello-world (TODO) tutorial for Jenkins 2.115 development?

I appreciate the help.

Regards.

Ron

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/b669b566-eb39-4b24-b76b-3965e14fa7e2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANWgJS503Q%2B9QQY_NJK_DttaPOGLNZneN-PQk9ngDjEhQFPm0Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: TODO-Plugin guidance

Ronald Petty
Thanks for the information.  I did find part of the issue for me.  The global.jelly is not generated, so there was no Configure screen for the plugin.  There was an option (which I didn't check first time) for the job, but not the plugin.  Adding global.jelly, repackage, it then worked like it use to.

On Wednesday, April 11, 2018 at 12:52:29 AM UTC-7, Baptiste Mathus wrote:
Cool you're trying this! Welcome!

You should follow <a href="https://jenkins.io/doc/developer/tutorial/create/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fjenkins.io%2Fdoc%2Fdeveloper%2Ftutorial%2Fcreate%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHcqggYtsu9c0Qz31WqnAXbpEJoww&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fjenkins.io%2Fdoc%2Fdeveloper%2Ftutorial%2Fcreate%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHcqggYtsu9c0Qz31WqnAXbpEJoww&#39;;return true;">https://jenkins.io/doc/developer/tutorial/create/ then IIUC you will want to choose the (as of now) choice number 2: 

"2: remote -> io.jenkins.archetypes:hello-world-plugin (Skeleton of a Jenkins plugin with a POM and an example build step.)"

FWIW, just tested it and it worked perfectly for me:

Démarré par l'utilisateur anonymous
Building in workspace [...]/dev/tmp/2018-04-11T09h44m51+0200-/blah/work/workspace/fgfdffd
Hello, baptiste!
Finished: SUCCESS

In the end, it /should/ be the very same as what you typed, but well, better follow the documentation if you're still learning the basics. For you, and to give us the opportunity to improve/fix the documentation for newcomers :).

Cheers

2018-04-11 5:46 GMT+02:00 Ronald Petty <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="TC_eEgHlBgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">ronald...@...>:
Hello,

I could be living in the past, but I am trying to get the old `mvn hpi:...` to work and it seems it has changed.  I found a page saying we should use this method here:

mvn archetype:generate -B -DarchetypeGroupId=io.jenkins.archetypes -DarchetypeArtifactId=hello-world-plugin -DarchetypeVersion=1.4 -DartifactId=first

mvn hpi:run

Things start up, and I see the TODO plugin installed, but the Hello World Builder is now gone.  No errors appear on start in the log.

Can someone point me to a fool proof hello-world (TODO) tutorial for Jenkins 2.115 development?

I appreciate the help.

Regards.

Ron

--
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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="TC_eEgHlBgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-dev/b669b566-eb39-4b24-b76b-3965e14fa7e2%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/b669b566-eb39-4b24-b76b-3965e14fa7e2%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/b669b566-eb39-4b24-b76b-3965e14fa7e2%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/b669b566-eb39-4b24-b76b-3965e14fa7e2%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/40d08dcd-3beb-4349-90cc-848419cee9b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: TODO-Plugin guidance

Jesse Glick-4
On Thu, Apr 12, 2018 at 7:57 AM, Ronald Petty <[hidden email]> wrote:
> The
> global.jelly is not generated, so there was no Configure screen for the
> plugin.

Yes, that was removed from the `Builder` archetype, as it was using an
old idiom that does not generalize well and is no longer recommended.
There is a separate archetype showing how to use a
`GlobalConfiguration`.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr0eCitrdjz-z2d0JONopixbeuD6ko9Tx-w9a-2Sh46mbA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.