Creating custom tag in Jenkins

27 views
Skip to first unread message

Dzmitry Kashlach

unread,
Jul 2, 2015, 8:49:28 AM7/2/15
to jenkin...@googlegroups.com
Hi Jenkins Dev team,

I would like to implement custom tag for using in my plugin.

Where should I place it in plugin's project to make it visible for config.jelly?
I've tried to copy *.jelly file to */resources/lib/hudson, but it does not help.
Please, point me to appropriate wiki page, if any exists.

Daniel Beck

unread,
Jul 2, 2015, 9:28:33 AM7/2/15
to jenkin...@googlegroups.com
You need a marker file named 'taglib' in the package with your custom tags, like e.g.

https://github.com/jenkinsci/jenkins/blob/master/core/src/main/resources/lib/layout/taglib

and the rest is documented at https://wiki.jenkins-ci.org/display/JENKINS/Understanding+Jelly+Tags
> --
> 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-de...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/a50dfe51-ff0e-4954-a80f-517afdfc4815%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Dzmitry Kashlach

unread,
Jul 6, 2015, 1:52:03 PM7/6/15
to jenkin...@googlegroups.com
Thanks, Daniel, will try.
Reply all
Reply to author
Forward
0 new messages