Scriptrunner for Bitbucket Server no longer recognizes scripts directory

I was evaluating Scriptrunner for Stash without issues and after upgrade to Bitbucket Server, I discovered that the default scripts directory is not recognized any longer.  I get this message now when associating a script: "You need to configure at least one alternate resource directory before using a web-resource, see the documentation".

I looked through the documentation and cannot find a solution.  I am using the same scripts directory as before.

1 answer

1 vote

Hi Michael,

Have you seen our documentation here about what you need to do when you upgrade to Bitbucket Server from Stash?

You also likely need to set the script roots directory please see here for how to do that. Its for JIRA but the same applies for Bitbucket too.

Are you using any script fragments web resources like here? You usually see that message when you try and use one of them but haven't set your plugin.resource.directories. Try setting that and the error message should go away.

In the future can you tag your question with: "com.onresolve.jira.stash.groovyrunner". Its more likely to get a faster reply compared to using the generic scriptrunner tag.

Thanks,
Adam 

You should not need to explicitly set the default script root directory... possibly you changed your home directory when upgrading?

No, I did not change the home directory when upgrading; ScriptRunner did not recognize it after the upgrade.  Only after explicitly setting plugin.resource.directories was I able to get this working again.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

23,735 views 26 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you