Forums

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

Script Runner deployment

Deleted user July 16, 2018

Hello,

 

I work with the plugin Script Runner, and now I have more than 20 scripts.

 

I use SVN to manage the scripts versions of my application. I have one trunk and some tags.

I have the currently version of my application on the trunk, and a preproduction environment on one tag.

 

Presently, when I want to update the prodution with all the preproduction scripts, I update them one by one with my little hands in the Script Runner interface, and I'm wasting a lot of time...

 

How can I deploy all of my scripts (script listeners, script fields...) quickly in jira ?

 

 

And same question with Javascript scripts with the plugin JSincluder.

 

Thanks.

1 answer

1 accepted

2 votes
Answer accepted
Mark Markov
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.
July 16, 2018

Hello @[deleted]
I'm not sure that JSincluder have that kind of functionality, but in scriptrunner you can do it in several ways. 

First one is to store your code in scrtiptfiles in your sripts root directory.

https://community.atlassian.com/t5/Jira-articles/Work-with-your-Jira-plugin-from-Adaptivist-ScriptRunner-or-how/ba-p/719050

And second one, you can create scriptrunner plugin and deploy it,  please check this article

https://community.atlassian.com/t5/Jira-articles/Part-1-How-to-deploy-Adaptivist-ScriptRunner-scripts-and-objects/ba-p/794887

Deleted user July 16, 2018

Hello @Mark Markov,

I already code the plugin in your 2nd link, but I don't understand everything...

If I want to redeploy, I have to recompile and reinstall the plugin with the new scripts ?

Mark Markov
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.
July 16, 2018

Yes. with the second method you create independent plugin with scriptrunner objects inside it.

Deleted user July 16, 2018

Okay,

And with the first method I understand is just to use personnal Library.

How can apply this for deployment ?

Mark Markov
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.
July 17, 2018

The goal of first method that you store all your scripts on file system and in configuration of listeners, workflows etc. use this files instead of inline scripting.

And if you have files on fs, you can do whatever you want. For example store files in butbucket and deploying it via Bamboo.

Deleted user July 18, 2018

Oh okay.

I'm trying to do the first method but because I have the same class on many script, the plugin can't compile...

But I have an idea to fix this, I have to make the first method with a file wich contain my duplicated classes :) !

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events