[JIRA] (JENKINS-55344) Allow to run Groovy scripts in JCasC

6 views
Skip to first unread message

tomasz.szandala@gmail.com (JIRA)

unread,
Dec 27, 2018, 6:10:02 AM12/27/18
to jenkinsc...@googlegroups.com
Tomasz Szandała created an issue
 
Jenkins / New Feature JENKINS-55344
Allow to run Groovy scripts in JCasC
Issue Type: New Feature New Feature
Assignee: Tomasz Szandała
Components: configuration-as-code-plugin
Created: 2018-12-27 11:09
Priority: Major Major
Reporter: Tomasz Szandała

It would be vital to be able to run Groovy script as part of JCasC configuration.
First of all there will be always something, that when Yaml is insufficient and can be done only using Groovy.
While we can still run Groovy, by putting them in init.groovy.d, it is reasonable to be able to reload them along JCasC configuration

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

o.v.nenashev@gmail.com (JIRA)

unread,
Dec 28, 2018, 12:38:01 PM12/28/18
to jenkinsc...@googlegroups.com
Oleg Nenashev commented on New Feature JENKINS-55344
 
Re: Allow to run Groovy scripts in JCasC

TBH I would advice against that for production instances until JCasC loading logic is improved. JCasC has a known issue with the initialization lifecycle. JCasC loading may be happening in parallel with Jobs loading, and there may be various race conditions if we run Groovy interpreter with its classloading magic.

 

tomasz.szandala@gmail.com (JIRA)

unread,
Dec 28, 2018, 1:52:03 PM12/28/18
to jenkinsc...@googlegroups.com

TBH I have tested this few dozen times and I did not notice aby issues. Could You try? I have made pull requested #687 with proposed feature. So far IT passed my tests...

o.v.nenashev@gmail.com (JIRA)

unread,
May 17, 2019, 1:07:02 PM5/17/19
to jenkinsc...@googlegroups.com
Oleg Nenashev updated an issue
 
Change By: Oleg Nenashev
Labels: jcasc-compatibility

timjacomb1@gmail.com (JIRA)

unread,
Mar 7, 2020, 5:57:03 AM3/7/20
to jenkinsc...@googlegroups.com
Change By: Tim Jacomb
Status: Open Fixed but Unreleased
Resolution: Fixed
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

timjacomb1@gmail.com (JIRA)

unread,
Mar 7, 2020, 5:57:03 AM3/7/20
to jenkinsc...@googlegroups.com
Change By: Tim Jacomb
Status: Fixed but Unreleased Closed

timjacomb1@gmail.com (JIRA)

unread,
Mar 7, 2020, 5:57:04 AM3/7/20
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages