Re: Adding Javascript to config.groovy

2020-05-30 Thread Daniel Beck
> On 29. May 2020, at 11:47, Esther Alvarez wrote: > > To pass around data from jelly to javascript, you can write "data-" > attributes in HTML tags with jelly and then load them with javascript. Here > some examples about how to do it: >

Re: Adding Javascript to config.groovy

2020-05-29 Thread Esther Alvarez
On Thursday, May 28, 2020 at 1:27:54 PM UTC+2, Jesse Glick wrote: > > On Thu, May 21, 2020 at 3:54 PM Parichay Barpanda > > wrote: > > I am looking for a way to add Javascript to config.groovy files in my > resources. It is possible to do so in jelly with

Re: Adding Javascript to config.groovy

2020-05-28 Thread Jesse Glick
On Thu, May 21, 2020 at 3:54 PM Parichay Barpanda wrote: > I am looking for a way to add Javascript to config.groovy files in my > resources. It is possible to do so in jelly with

Re: Adding Javascript to config.groovy

2020-05-28 Thread Daniel Beck
On Thu, May 21, 2020 at 10:35 PM Parichay Barpanda < parichay.barpa...@gmail.com> wrote: > because lack of IDE support make tags unreadable. > There are IDE plugins adding support for this. -- You received this message because you are subscribed to the Google Groups "Jenkins Developers"

Re: Adding Javascript to config.groovy

2020-05-21 Thread Parichay Barpanda
Thanks. I first saw groovy style config in GitHub Plugin and feel it more convenient over jelly because lack of IDE support make tags unreadable. On Fri, May 22, 2020 at 1:54 AM 'Gavin Mogan' via Jenkins Developers < jenkinsci-dev@googlegroups.com> wrote: > Oh wow, I didn't know that was a

Re: Adding Javascript to config.groovy

2020-05-21 Thread 'Gavin Mogan' via Jenkins Developers
Oh wow, I didn't know that was a thing. Apparently you can use raw() https://github.com/jenkinsci/embeddable-build-status-plugin/blob/master/src/main/resources/org/jenkinsci/plugins/badge/actions/RunBadgeAction/index.groovy#L11-L40 My grepping didn't turn up any other options. I'd be concerned

Re: Adding Javascript to config.groovy

2020-05-21 Thread Parichay Barpanda
Yes. See https://github.com/jenkinsci/gitlab-branch-source-plugin/blob/master/src/main/resources/io/jenkins/plugins/gitlabserverconfig/servers/GitLabServer/config.groovy On Friday, May 22, 2020 at 1:26:09 AM UTC+5:30, Gavin Mogan wrote: > > Whats a config.groovy compared to config.jelly? Are you

Re: Adding Javascript to config.groovy

2020-05-21 Thread 'Gavin Mogan' via Jenkins Developers
Whats a config.groovy compared to config.jelly? Are you writing a plugin using groovy? On Thu, May 21, 2020 at 12:54 PM Parichay Barpanda < parichay.barpa...@gmail.com> wrote: > Hi, > > I am looking for a way to add Javascript to config.groovy files in my > resources. It is possible to do so in

Adding Javascript to config.groovy

2020-05-21 Thread Parichay Barpanda
Hi, I am looking for a way to add Javascript to config.groovy files in my resources. It is possible to do so in jelly with