Extension ordinal not working

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

Extension ordinal not working

liuweiGL

QQ截图20200121113958.png

QQ截图20200121114210.png


--
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/bd72f850-25f0-4e00-9ce0-c8ff81f70354%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Extension ordinal not working

Gavin Mogan
ordinal controls which order the extension gets added to the list of extensions.

I don't think you are looking at the right class, since JobPropertyDescriptor doesn't seem to have anything todo with triggers. I would guess your looking for something extending https://javadoc.jenkins.io/hudson/tasks/BuildTrigger.html or ReverseBuildTrigger (based on the docs)

If you inspect the source, you usually can tell the full class name

Gavin

On Mon, Jan 20, 2020 at 7:43 PM liuweiGL <[hidden email]> wrote:

QQ截图20200121113958.png

QQ截图20200121114210.png


--
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/bd72f850-25f0-4e00-9ce0-c8ff81f70354%40googlegroups.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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAG%3D_Duu%2BdE-XG_DXmForKTJPnzUhFK8R3mUSZ-LCp-PkUCanqw%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: Extension ordinal not working

liuweiGL
Thank you for reply, i think you misunderstood me.

  • I want to add a separate section to the configuration page, just like Build Triggers | Advanced Project Options etc.

  • I manually moved HTML DOM to show the layout i wanted:

  • QQ截图20200121113958.png



在 2020年1月21日星期二 UTC+8上午11:53:00,Gavin Mogan写道:
ordinal controls which order the extension gets added to the list of extensions.

I don't think you are looking at the right class, since JobPropertyDescriptor doesn't seem to have anything todo with triggers. I would guess your looking for something extending <a href="https://javadoc.jenkins.io/hudson/tasks/BuildTrigger.html" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fjavadoc.jenkins.io%2Fhudson%2Ftasks%2FBuildTrigger.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHgwf8UqY3mr32zBo8z4uVbZE39ug&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fjavadoc.jenkins.io%2Fhudson%2Ftasks%2FBuildTrigger.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHgwf8UqY3mr32zBo8z4uVbZE39ug&#39;;return true;">https://javadoc.jenkins.io/hudson/tasks/BuildTrigger.html or ReverseBuildTrigger (based on the docs)

If you inspect the source, you usually can tell the full class name

Gavin

On Mon, Jan 20, 2020 at 7:43 PM liuweiGL <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="6FX7PljHEAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">liuwe...@...> wrote:

QQ截图20200121113958.png

QQ截图20200121114210.png


--
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="6FX7PljHEAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkin...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-dev/bd72f850-25f0-4e00-9ce0-c8ff81f70354%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/bd72f850-25f0-4e00-9ce0-c8ff81f70354%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/bd72f850-25f0-4e00-9ce0-c8ff81f70354%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/bd72f850-25f0-4e00-9ce0-c8ff81f70354%40googlegroups.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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/956a0a0a-f777-4c25-af35-16b40f498ff5%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Extension ordinal not working

Ulli Hafner
I am not aware that there is an extension point available to add a new section in the UI.

Am 21.01.2020 um 06:05 schrieb liuweiGL <[hidden email]>:

Thank you for reply, i think you misunderstood me.

  • I want to add a separate section to the configuration page, just like Build Triggers | Advanced Project Options etc.

  • I manually moved HTML DOM to show the layout i wanted:

  • <QQ截图20200121113958.png>



在 2020年1月21日星期二 UTC+8上午11:53:00,Gavin Mogan写道:
ordinal controls which order the extension gets added to the list of extensions.

I don't think you are looking at the right class, since JobPropertyDescriptor doesn't seem to have anything todo with triggers. I would guess your looking for something extending https://javadoc.jenkins.io/hudson/tasks/BuildTrigger.html or ReverseBuildTrigger (based on the docs)

If you inspect the source, you usually can tell the full class name

Gavin

On Mon, Jan 20, 2020 at 7:43 PM liuweiGL <[hidden email]> wrote:

QQ截图20200121113958.png

QQ截图20200121114210.png



--
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 jenkin...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/bd72f850-25f0-4e00-9ce0-c8ff81f70354%40googlegroups.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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/956a0a0a-f777-4c25-af35-16b40f498ff5%40googlegroups.com.
<QQ截图20200121113958.png>

--
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/C83DC7BC-3C29-41B1-AB98-198306166781%40gmail.com.