opsgenie / oec

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

howto use scripts from scripts?

davidkarlsen opened this issue · comments

I have a groovy script which calls another script. This script is not found, and in config you can only point to a given script:

WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass (file:/usr/share/groovy/lib/groovy-2.4.17.jar) to method java.lang.Object.finalize()
WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.reflection.CachedClass
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
/scripts/Create.groovy: 21: unable to resolve class TeamResolver
 @ line 21, column 21.
         String team = new TeamResolver().getAssignmentTeam( applicationName )
                       ^

1 error

Hi @davidkarlsen, you need to use executor.groovy script inside this special zip to run legacy groovy scripts that depend on Marid libraries. We wanted to share our doc for the migration from Marid to OEC in case you have another problem related to it.

You can find open bugs and suggestions for OEC on our public issue tracker. If you are experiencing an issue with OEC, or if you want to raise a new bug or suggestion you can reach out Opsgenie support.