Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-55344

Allow to run Groovy scripts in JCasC

    Details

    • Similar Issues:

      Description

      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

        Attachments

          Activity

          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          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.

           

          Show
          oleg_nenashev Oleg Nenashev added a comment - 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.  
          Hide
          szandala Tomasz Szandała added a comment -

          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...

          Show
          szandala Tomasz Szandała added a comment - 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...

            People

            • Assignee:
              szandala Tomasz Szandała
              Reporter:
              szandala Tomasz Szandała
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: