Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Script Plugin - Groovy script file is not found on the script console

Mark Libunao February 17, 2022

I tried creating a jira script plugin and I was able to run it on the scriptrunner console, the groovy script can be found. But this is on my development environment.

Then I tried installing the script plugin to another jira server instance but in there the groovy script cannot be found.

How does the script root works in this scenario?

 

Here is my setup that works on the dev environment.

Besides of the simple groovy script that is on the resources folder. I only have added this part to my atlassian-plugin.xml

// add in atlassian-plugin.xml 
// atlassian-plugin > plugin-info
<bundle-instructions>
<Require-Bundle>com.onresolve.jira.groovy.groovyrunner</Require-Bundle>
</bundle-instructions>

also to pom.xml

// add in pom.xml 
// build > plugins > plugin > configuration
<systemPropertyVariables>
<plugin.script.roots>${project.basedir}/src/main/resources,${project.basedir}/src/test/resources</plugin.script.roots>
</systemPropertyVariables> 

 

i tried adding the full path to the console file path input (packagenamehere/script.groovy), but still cannot be found. im using the latest version of scriptrunner.

1 answer

0 votes
PD Sheehan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 18, 2022

Suggest an answer

Log in or Sign up to answer