Forums

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

Unattended upgrade of JIRA with modified/added/removed files

Gaël NEUEZ
Contributor
June 25, 2020

Hello

I'm trying to script an unattended upgrade (not a fresh install!) of our JIRA instances.

The response.varfile is not a solution because it does not take into account all params.

I started at first to feed to answers to the installer like this:

 

cat << EOF | ./atlassian-jira-software-${TARGET_JIRA_VERSION}-x64.bin
o
3
/opt/atlassian/jira
n











y
u
n
EOF

where the blank lines correspond to the "pages" of modified/added/removed files that you need to confirm before reaching the "real" upgrade question...

But my concern is that depending on my JIRA instances, the number of modified/added/removed files (compared to initial install) is not fixed (some may have no changes, some may have dozens of modifications).

This means I cannot get this script generic enough. I've tried to used the "expect" linux command to try the same thing :

spawn /tmp/atlassian-jira-software-${TARGET_JIRA_VERSION}-x64.bin
expect {
"This will install JIRA Software" {
send "o\r"
exp_continue
}
"Choose the appropriate installation or upgrade option" {
send "3\r"
exp_continue
}
"Existing installation directory" {
send "/opt/atlassian/jira\r"
exp_continue
}
"Back up JIRA home directory" {
send "n\r"
exp_continue
}
#THIS IS FOR sending return to each page of modified/added/removed files
#Each time we have a page, send return
"\[Enter\]" {
send "\r"
exp_continue
}
"Have you completed all these steps" {
send "y\r"
exp_continue
}
"Upgrade \[u, Enter\], Exit \[e\]\r" {
send "e\r"
exp_continue
}
}

But with no luck either, because it seems those pages are not exactly catched by the script.

Has anyone already been able to handle this upgrade in unattended mode?

Or is there a way AHEAD of calling the script to know how many modified/added/removed files there are in my instance?

Regards

1 answer

0 votes
Asif Khan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 25, 2020

I had the same issue with Confluence unattended installation, per Atlassians they have no plan to fix or implement this feature in near future. Don't use it for any Atlassian products

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events