How to setup a JIRA test server

Ryan Grimard October 25, 2011

I'm using JIRA standalone. Backend is on SQL Server. I would like to configure a test server, which will allow me to test new workflow changes, plugins, JIRA updates, etc.

What is the best way to configure such a test server? I'm thinking a VM where I can snapshot my "current configuration", then make changes and revert back to the snapshot if necessary.

What is the best way to make the test server match the production server's configuration? Is it as simple as exporting production JIRA configuration and/or projects and then importing into the test server? Or should I clone the production server (physical to VM) and then change the database connection?

2 answers

1 accepted

1 vote
Answer accepted
Bob Swift (personal)
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.
October 26, 2011

I would recommend you create and follow a procedure that you would follow in case of a server failure. That means automate your nightly backup procedures, make sure data is off system, and then have a restore plan to get it running on another server (your test server). So not only do you have your test environment set up, but you get confidence in your backup procedures.

Justin Rand
Contributor
October 31, 2011

Following this advice, I'd look to move away from the XML backups and use the native DB backup procedure. You may also want to do this on a VM and (if you have the application available) create a snapshot of your "Production Mirror". That way if any issues arise in your production instance you can easily revert to the mirror and began testing/debugging with little to no effort.

Ryan Grimard October 31, 2011

I like that. However, what is the easiest way to configure the JIRA instance to point to the correct db? I had the JIRA install create the DB for me, so I haven't had to repoint one manually yet.

Justin Rand
Contributor
October 31, 2011

Should be in your <install-directory>/conf/server.xml file below the HTTPS section. It makes it easy if you have the DB running on the same server. This way you can point it to localhost:<port> and never have to worry about your test instance reaching out to your production DB no matter how many times you copy over your JIRA files.

There is also documentation for setting up DB connections here: http://confluence.atlassian.com/display/JIRA/Connecting+JIRA+to+a+Database

Ryan Grimard October 31, 2011

OK, you've convinced me. I now have this all wired up with scripts. I can drop the backup file in place and execute a restore script to bring my test server up to date with my production server. Only remaining peice is to copy plugins over from the production system. Bit of a pain, however, because I'm using one plugin that lands in the web-inf folder with a property file in the classes directory...

0 votes
Jo-Anne MacLeod
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.
October 25, 2011

One way would be to set up the test env, import a xml backup of your production server, copy over your attachments. Then repeat the steps on a nightly bases (I would look at writing a script).

Ryan Grimard October 25, 2011

So I would need to install JIRA from scratch, drop in and configure all the plugins I'm using, and then import xml the backup?

What about the backend? On my test server, should I just use the default backend?

Does the XML backup backup the actual issues, or just configuration?

Bob Swift (personal)
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.
October 26, 2011

Yes, issues and configuration. Attachments must be handled separately as mentioned by Jo-Anne.

Ryan Grimard October 31, 2011

This worked great. Just exported a backup from production, imported into test. Then copied over my plugins and attachments. Restart. Done.

Thanks

Ryan

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events