Skip to content

Commit ebe8ba8

Browse files
authored
Merge pull request #16 from atlassian/release-1.0.5-beta
Release 1.0.5 beta
2 parents b04c3bb + 8a0d04f commit ebe8ba8

File tree

6 files changed

+139
-50
lines changed

6 files changed

+139
-50
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ This repository contains Taurus scripts for performance testing of Atlassian Dat
66
At the moment, Jira DC support is in beta. Confluence DC and Bitbucket DC support is coming soon.
77

88
## Known issues/limitations
9-
* Jira version 8.0.3 is only supported. Version 7.13.x support is coming soon.
9+
* Supported Jira versions:
10+
* Latest platform release: 8.0.3
11+
* Latest enterprise release: 7.13.6
1012
* The SQL import is flaky. In case of a failure, run it again.
1113

1214
## Installation and set up

jira/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Running tests
22
## Pre-requisites
3-
* Working Jira Software, version 8.0.3 with users, issues, projects, and boards, etc.
3+
* Working Jira Software of supported version (see toolkit README.md for a list of supported Jira versions) with users, issues, projects, and boards, etc.
44
* Client machine with 4 CPUs and 16 GBs of RAM to run the Toolkit.
55
* Virtual environment with Python3.6+ and bzt installed. See the root `README.md` file for more details.
66

jira/dc-apps-performance-toolkit-user-guide.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ All important parameters are listed and described in this section. For all other
4747
| Parameter | Recommended Value |
4848
| --------- | ----------------- |
4949
| Jira Product | Software |
50-
| Jira Version | 8.0.3 |
50+
| Jira Version | 8.0.3 or 7.13.6 |
5151

5252
The Data Center App Performance Toolkit officially supports:
5353

54-
- The latest Jira GA (General Availability release) version: 8.0.3
55-
- The latest [Enterprise Release](https://confluence.atlassian.com/enterprise/atlassian-enterprise-releases-948227420.html): 7.13
54+
- The latest Jira Platform Release version: 8.0.3
55+
- The latest Jira [Enterprise Release](https://confluence.atlassian.com/enterprise/atlassian-enterprise-releases-948227420.html): 7.13.6
5656

5757
**Cluster nodes**
5858

@@ -159,7 +159,7 @@ All the datasets use the standard `admin`/`admin` credentials.
159159

160160
Pre-loading the dataset is a three-step process:
161161

162-
1. [Importing the main dataset](#importingdataset). To help you out, we provide an enterprise-scale dataset you can import either via the [populate_db.sh](https://github.com/atlassian/dc-app-performance-toolkit/blob/master/jira/util/populate_db.sh) script or [xml_backup.zip](https://centaurus-datasets.s3.amazonaws.com/jira/8.0.3/large/xml_backup.zip).
162+
1. [Importing the main dataset](#importingdataset). To help you out, we provide an enterprise-scale dataset you can import either via the [populate_db.sh](https://github.com/atlassian/dc-app-performance-toolkit/blob/master/jira/util/populate_db.sh) script or restore from xml backup file.
163163
1. [Restoring attachments](#copyingattachments). We also provide attachments, which you can pre-load via an [upload_attachments.sh](https://github.com/atlassian/dc-app-performance-toolkit/blob/master/jira/util/upload_attachments.sh) script.
164164
1. [Re-indexing Jira Data Center](#reindexing). For more information, go to [Re-indexing Jira](https://confluence.atlassian.com/adminjiraserver/search-indexing-938847710.html).
165165

@@ -185,11 +185,11 @@ To populate the database with SQL:
185185

186186
For Windows, use Putty to connect to the Jira node over SSH.
187187
For Linux or MacOS:
188-
``` bash
188+
```bash
189189
ssh-add path_to_your_private_key_pem
190190
export BASTION_IP=bastion_instance_public_ip
191191
export NODE_IP=node_private_ip
192-
ssh ec2-user@$NODE_IP -o "proxycommand ssh -W %h:%p ec2-user@$BASTION_IP"
192+
ssh -o "proxycommand ssh -W %h:%p ec2-user@$BASTION_IP" ec2-user@${NODE_IP}
193193
```
194194
For more information, go to [Connecting your nodes over SSH](https://confluence.atlassian.com/adminjiraserver/administering-jira-data-center-on-aws-938846969.html#AdministeringJiraDataCenteronAWS-ConnectingtoyournodesoverSSH).
195195
1. Download the [populate_db.sh](https://github.com/atlassian/dc-app-performance-toolkit/blob/master/jira/util/populate_db.sh) script and make it executable:
@@ -203,14 +203,13 @@ To populate the database with SQL:
203203
INSTALL_PSQL_CMD="amazon-linux-extras install -y postgresql10"
204204
DB_CONFIG="/var/atlassian/application-data/jira/dbconfig.xml"
205205
JIRA_CURRENT_DIR="/opt/atlassian/jira-software/current"
206-
STOP_JIRA="${JIRA_CURRENT_DIR}/bin/stop-jira.sh"
207-
START_JIRA="${JIRA_CURRENT_DIR}/bin/start-jira.sh"
208206
CATALINA_PID_FILE="${JIRA_CURRENT_DIR}/work/catalina.pid"
209207
JIRA_DB_NAME="jira"
210208
JIRA_DB_USER="postgres"
211209
JIRA_DB_PASS="Password1!"
212-
DATASETS_AWS_BUCKET="https://centaurus-datasets.s3.amazonaws.com/jira/8.0.3/large"
213-
DB_DUMP_NAME="db.dump"
210+
JIRA_SETENV_FILE="${JIRA_CURRENT_DIR}/bin/setenv.sh"
211+
JIRA_VERSION_FILE="/media/atl/jira/shared/jira-software.version"
212+
DATASETS_AWS_BUCKET="https://centaurus-datasets.s3.amazonaws.com/jira"
214213
```
215214
1. Run the script:
216215

@@ -236,17 +235,18 @@ We recommend that you only use this method if you are having problems with the [
236235

237236
For Windows, use Putty to connect to the Jira node over SSH.
238237
For Linux or MacOS:
239-
``` bash
238+
```bash
240239
ssh-add path_to_your_private_key_pem
241240
export BASTION_IP=bastion_instance_public_ip
242241
export NODE_IP=node_private_ip
243-
ssh ec2-user@$NODE_IP -o "proxycommand ssh -W %h:%p ec2-user@$BASTION_IP"
242+
ssh -o "proxycommand ssh -W %h:%p ec2-user@$BASTION_IP" eec2-user@${NODE_IP}
244243
```
245244
For more information, go to [Connecting your nodes over SSH](https://confluence.atlassian.com/adminjiraserver/administering-jira-data-center-on-aws-938846969.html#AdministeringJiraDataCenteronAWS-ConnectingtoyournodesoverSSH).
246-
1. Download the [xml_backup.zip](https://centaurus-datasets.s3.amazonaws.com/jira/8.0.3/large/xml_backup.zip) file.
245+
1. Download the xml_backup.zip file corresponding to your Jira version.
247246

248247
``` bash
249-
sudo su jira -c "wget https://centaurus-datasets.s3.amazonaws.com/jira/8.0.3/large/xml_backup.zip -O /media/atl/jira/shared/import"
248+
JIRA_VERSION=$(sudo su jira -c "cat /media/atl/jira/shared/jira-software.version")
249+
sudo su jira -c "wget https://centaurus-datasets.s3.amazonaws.com/jira/${JIRA_VERSION}/large/xml_backup.zip -O /media/atl/jira/shared/import/xml_backup.zip"
250250
```
251251
1. From a different computer, log in as a user with the **Jira System Administrators** [global permission](https://confluence.atlassian.com/adminjiraserver/managing-global-permissions-938847142.html).
252252
1. Go to **![cog icon](/platform/marketplace/images/cog.png) > System > Restore System.** from the menu.
@@ -261,11 +261,11 @@ After [Importing the main dataset](#importingdataset), you'll now have to pre-lo
261261

262262
For Windows, use Putty to connect to the Jira node over SSH.
263263
For Linux or MacOS:
264-
``` bash
264+
```bash
265265
ssh-add path_to_your_private_key_pem
266266
export BASTION_IP=bastion_instance_public_ip
267267
export NODE_IP=node_private_ip
268-
ssh ec2-user@$NODE_IP -o "proxycommand ssh -W %h:%p ec2-user@$BASTION_IP"
268+
ssh -o "proxycommand ssh -W %h:%p ec2-user@$BASTION_IP" ec2-user@${NODE_IP}
269269
```
270270
For more information, go to [Connecting your nodes over SSH](https://confluence.atlassian.com/adminjiraserver/administering-jira-data-center-on-aws-938846969.html#AdministeringJiraDataCenteronAWS-ConnectingtoyournodesoverSSH).
271271
1. Download the [upload_attachments.sh](https://github.com/atlassian/dc-app-performance-toolkit/blob/master/jira/util/upload_attachments.sh) script and make it executable:
@@ -276,7 +276,7 @@ After [Importing the main dataset](#importingdataset), you'll now have to pre-lo
276276
1. Review the following `Variables section` of the script:
277277

278278
``` bash
279-
DATASETS_AWS_BUCKET="https://centaurus-datasets.s3.amazonaws.com/jira/8.0.3/large"
279+
DATASETS_AWS_BUCKET="https://centaurus-datasets.s3.amazonaws.com/jira"
280280
ATTACHMENTS_TAR="attachments.tar.gz"
281281
ATTACHMENTS_DIR="attachments"
282282
TMP_DIR="/tmp"
@@ -514,7 +514,7 @@ To receive scalability benchmark results for two-node Jira DC with app-specific
514514
ssh-add path_to_your_private_key_pem
515515
export BASTION_IP=bastion_instance_public_ip
516516
export NODE_IP=node_private_ip
517-
ssh ec2-user@$NODE_IP -o "proxycommand ssh -W %h:%p ec2-user@$BASTION_IP"
517+
ssh -o "proxycommand ssh -W %h:%p ec2-user@$BASTION_IP" ec2-user@${NODE_IP}
518518
```
519519
1. Once you're in the second node, download the [index-sync.sh](https://raw.githubusercontent.com/atlassian/dc-app-performance-toolkit/master/jira/util/index-sync.sh) file. Then, make it executable and run it:
520520

jira/jira.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,4 @@ modules:
8484
httpsampler.ignore_failed_embedded_resources: "true"
8585
selenium:
8686
chromedriver:
87-
version: "76.0.3809.68" # Supports Chrome version 76. You can refer to http://chromedriver.chromium.org/downloads
87+
version: "77.0.3865.40" # Supports Chrome version 77. You can refer to http://chromedriver.chromium.org/downloads

jira/util/populate_db.sh

Lines changed: 82 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/bin/bash
22

3-
43
################### Variables section ###################
54
# Command to install psql client for Amazon Linux 2.
65
# In case of different distributive, please adjust accordingly or install manually.
@@ -14,40 +13,79 @@ JIRA_CURRENT_DIR="/opt/atlassian/jira-software/current"
1413
STOP_JIRA="${JIRA_CURRENT_DIR}/bin/stop-jira.sh"
1514
START_JIRA="${JIRA_CURRENT_DIR}/bin/start-jira.sh"
1615
CATALINA_PID_FILE="${JIRA_CURRENT_DIR}/work/catalina.pid"
16+
JIRA_SETENV_FILE="${JIRA_CURRENT_DIR}/bin/setenv.sh"
17+
JIRA_VERSION_FILE="/media/atl/jira/shared/jira-software.version"
18+
SHUT_DOWN_TOMCAT="${JIRA_CURRENT_DIR}/bin/shutdown.sh"
1719

1820
# DB admin user name, password and DB name
1921
JIRA_DB_NAME="jira"
2022
JIRA_DB_USER="postgres"
2123
JIRA_DB_PASS="Password1!"
2224

23-
# Datasets AWS bucket and db dupm name
24-
DATASETS_AWS_BUCKET="https://centaurus-datasets.s3.amazonaws.com/jira/8.0.3/large"
25+
# Jira version variables
26+
SUPPORTED_JIRA_VERSIONS=(8.0.3 7.13.6)
27+
JIRA_VERSION=$(sudo su jira -c "cat ${JIRA_VERSION_FILE}")
28+
echo "Jira Version: ${JIRA_VERSION}"
29+
30+
# Datasets AWS bucket and db dump name
31+
DATASETS_AWS_BUCKET="https://centaurus-datasets.s3.amazonaws.com/jira"
32+
DATASETS_SIZE="large"
2533
DB_DUMP_NAME="db.dump"
34+
DB_DUMP_URL="${DATASETS_AWS_BUCKET}/${JIRA_VERSION}/${DATASETS_SIZE}/${DB_DUMP_NAME}"
35+
2636
################### End of variables section ###################
2737

2838

39+
# Check if Jira version is supported
40+
if [[ ! "${SUPPORTED_JIRA_VERSIONS[@]}" =~ "${JIRA_VERSION}" ]]; then
41+
echo "Jira Version: ${JIRA_VERSION} is not officially supported by DCAPT."
42+
echo "Supported Jira Versions: ${SUPPORTED_JIRA_VERSIONS[@]}"
43+
echo "If you want to force apply an existing datasets to your Jira, use --force flag with version of dataset you want to apply:"
44+
echo "e.g. ./populate_db.sh --force 8.0.3"
45+
echo "!!! Warning !!! This may broke your Jira instance."
46+
# Check if --force flag is passed into command
47+
if [[ "$1" == "--force" ]]; then
48+
# Check if passed Jira version is in list of supported
49+
if [[ "${SUPPORTED_JIRA_VERSIONS[@]}" =~ "$2" ]]; then
50+
DB_DUMP_URL="${DATASETS_AWS_BUCKET}/$2/${DATASETS_SIZE}/${DB_DUMP_NAME}"
51+
echo "Force mode. Dataset URL: ${DB_DUMP_URL}"
52+
# If there is no DOWNGRADE_OPT - set it
53+
DOWNGRADE_OPT="Djira.downgrade.allowed=true"
54+
if sudo su jira -c "! grep -q ${DOWNGRADE_OPT} $JIRA_SETENV_FILE"; then
55+
sudo sed -i "s/JVM_SUPPORT_RECOMMENDED_ARGS=\"/&-${DOWNGRADE_OPT} /" "${JIRA_SETENV_FILE}"
56+
echo "Flag -${DOWNGRADE_OPT} was set in ${JIRA_SETENV_FILE}"
57+
fi
58+
else
59+
echo "Correct dataset version was not specified after --force flag."
60+
echo "Available datasets: ${SUPPORTED_JIRA_VERSIONS[@]}"
61+
exit 1
62+
fi
63+
else
64+
# No force flag
65+
exit 1
66+
fi
67+
fi
68+
2969
echo "!!! Warning !!!"
30-
echo # move to a new line
70+
echo # move to a new line
3171
echo "This script restores Postgres DB from SQL DB dump for Jira DC created with AWS Quickstart defaults."
3272
echo "You can review or modify default variables in 'Variables section' of this script."
33-
echo # move to a new line
73+
echo # move to a new line
3474
echo "Variables:"
3575
echo "JIRA_CURRENT_DIR=${JIRA_CURRENT_DIR}"
3676
echo "DB_CONFIG=${DB_CONFIG}"
3777
echo "JIRA_DB_NAME=${JIRA_DB_NAME}"
3878
echo "JIRA_DB_USER=${JIRA_DB_USER}"
3979
echo "JIRA_DB_PASS=${JIRA_DB_PASS}"
40-
echo "DB_DUMP=${DATASETS_AWS_BUCKET}/${DB_DUMP_NAME}"
41-
echo # move to a new line
80+
echo "DB_DUMP_URL=${DB_DUMP_URL}"
81+
echo # move to a new line
4282
read -p "I confirm that variables are correct and want to proceed (y/n)? " -n 1 -r
43-
echo # move to a new line
44-
if [[ ! $REPLY =~ ^[Yy]$ ]]
45-
then
46-
echo "Script was canceled."
47-
exit 1
83+
echo # move to a new line
84+
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
85+
echo "Script was canceled."
86+
exit 1
4887
fi
4988

50-
5189
echo "Step1: Check Postgres Client"
5290
if ! [[ -x "$(command -v psql)" ]]; then
5391
echo "Install Postgres client"
@@ -64,50 +102,68 @@ fi
64102

65103
echo "Step2: Download DB dump"
66104
rm -rf ${DB_DUMP_NAME}
67-
wget ${DATASETS_AWS_BUCKET}/${DB_DUMP_NAME}
105+
wget ${DB_DUMP_URL}
68106
if [[ $? -ne 0 ]]; then
69107
echo "DB dump download failed! Pls check available disk space."
70108
exit 1
71109
fi
72110

73111
echo "Step3: Stop Jira"
74112
CATALINA_PID=$(pgrep -f "catalina")
113+
echo "CATALINA_PID=${CATALINA_PID}"
75114
if [[ -z ${CATALINA_PID} ]]; then
76115
echo "Jira is not running"
116+
sudo su -c "rm -rf ${CATALINA_PID_FILE}"
77117
else
78118
echo "Stopping Jira"
79-
sudo su jira -c "echo ${CATALINA_PID} > ${CATALINA_PID_FILE}"
80-
sudo su jira -c "${STOP_JIRA}"
81-
sleep 5
119+
sudo su -c "echo ${CATALINA_PID} > ${CATALINA_PID_FILE}"
120+
sudo su -c "${SHUT_DOWN_TOMCAT}"
121+
COUNTER=0
122+
TIMEOUT=5
123+
ATTEMPTS=20
124+
while [[ "${COUNTER}" -lt "${ATTEMPTS}" ]]; do
125+
if [[ -z $(pgrep -f "catalina") ]]; then
126+
echo Jira is stopped
127+
break
128+
fi
129+
echo "Waiting for Jira stop, attempt ${COUNTER} at waiting ${TIMEOUT} seconds."
130+
sleep ${TIMEOUT}
131+
let COUNTER++
132+
done
133+
if [ ${COUNTER} -eq ${ATTEMPTS} ]; then
134+
echo "Jira stop was not finished in $ATTEMPTS attempts with $TIMEOUT sec timeout."
135+
echo "Try to rerun script."
136+
exit 1
137+
fi
82138
fi
83139

84-
echo "Step4: Get DB_URL"
85-
DB_URL=$(sudo su -c "cat ${DB_CONFIG} | grep 'jdbc:postgresql' | cut -d'/' -f3 | cut -d':' -f1")
86-
if [[ -z ${DB_URL} ]]; then
140+
echo "Step4: Get DB Host"
141+
DB_HOST=$(sudo su -c "cat ${DB_CONFIG} | grep 'jdbc:postgresql' | cut -d'/' -f3 | cut -d':' -f1")
142+
if [[ -z ${DB_HOST} ]]; then
87143
echo "DataBase URL was not found in ${DB_CONFIG}"
88144
exit 1
89145
fi
90-
echo "DB_URL=${DB_URL}"
146+
echo "DB_HOST=${DB_HOST}"
91147

92148
echo "Step5: SQL Restore"
93149
echo "Check DB connection"
94-
PGPASSWORD=${JIRA_DB_PASS} pg_isready -U ${JIRA_DB_USER} -h ${DB_URL}
150+
PGPASSWORD=${JIRA_DB_PASS} pg_isready -U ${JIRA_DB_USER} -h ${DB_HOST}
95151
if [[ $? -ne 0 ]]; then
96152
echo "Connection to DB failed. Please check correctness of following variables:"
97153
echo "JIRA_DB_NAME=${JIRA_DB_NAME}"
98154
echo "JIRA_DB_USER=${JIRA_DB_USER}"
99155
echo "JIRA_DB_PASS=${JIRA_DB_PASS}"
100-
echo "DB_URL=${DB_URL}"
156+
echo "DB_HOST=${DB_HOST}"
101157
exit 1
102158
fi
103159
echo "Drop DB"
104-
PGPASSWORD=${JIRA_DB_PASS} dropdb -U ${JIRA_DB_USER} -h ${DB_URL} ${JIRA_DB_NAME}
160+
PGPASSWORD=${JIRA_DB_PASS} dropdb -U ${JIRA_DB_USER} -h ${DB_HOST} ${JIRA_DB_NAME}
105161
sleep 5
106162
echo "Create DB"
107-
PGPASSWORD=${JIRA_DB_PASS} createdb -U ${JIRA_DB_USER} -h ${DB_URL} -T template0 ${JIRA_DB_NAME}
163+
PGPASSWORD=${JIRA_DB_PASS} createdb -U ${JIRA_DB_USER} -h ${DB_HOST} -T template0 ${JIRA_DB_NAME}
108164
sleep 5
109165
echo "PG Restore"
110-
time PGPASSWORD=${JIRA_DB_PASS} pg_restore -v -U ${JIRA_DB_USER} -h ${DB_URL} -d ${JIRA_DB_NAME} ${DB_DUMP_NAME}
166+
time PGPASSWORD=${JIRA_DB_PASS} pg_restore -v -U ${JIRA_DB_USER} -h ${DB_HOST} -d ${JIRA_DB_NAME} ${DB_DUMP_NAME}
111167
if [[ $? -ne 0 ]]; then
112168
echo "SQL Restore failed!"
113169
exit 1

jira/util/upload_attachments.sh

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,44 @@
22

33

44
################### Variables section ###################
5-
DATASETS_AWS_BUCKET="https://centaurus-datasets.s3.amazonaws.com/jira/8.0.3/large"
5+
# Jira version variables
6+
JIRA_VERSION_FILE="/media/atl/jira/shared/jira-software.version"
7+
SUPPORTED_JIRA_VERSIONS=(8.0.3 7.13.6)
8+
JIRA_VERSION=$(sudo su jira -c "cat ${JIRA_VERSION_FILE}")
9+
echo "Jira Version: ${JIRA_VERSION}"
10+
11+
DATASETS_AWS_BUCKET="https://centaurus-datasets.s3.amazonaws.com/jira"
612
ATTACHMENTS_TAR="attachments.tar.gz"
713
ATTACHMENTS_DIR="attachments"
14+
DATASETS_SIZE="large"
15+
ATTACHMENTS_TAR_URL="${DATASETS_AWS_BUCKET}/${JIRA_VERSION}/${DATASETS_SIZE}/${ATTACHMENTS_TAR}"
816
TMP_DIR="/tmp"
917
EFS_DIR="/media/atl/jira/shared/data"
1018
################### End of variables section ###################
1119

20+
# Check if Jira version is supported
21+
if [[ ! "${SUPPORTED_JIRA_VERSIONS[@]}" =~ "${JIRA_VERSION}" ]]; then
22+
echo "Jira Version: ${JIRA_VERSION} is not officially supported by DCAPT."
23+
echo "Supported Jira Versions: ${SUPPORTED_JIRA_VERSIONS[@]}"
24+
echo "If you want to force apply an existing datasets to your Jira, use --force flag with version of dataset you want to apply:"
25+
echo "e.g. ./upload_attachments --force 8.0.3"
26+
echo "!!! Warning !!! This may broke your Jira instance."
27+
# Check if --force flag is passed into command
28+
if [[ "$1" == "--force" ]]; then
29+
# Check if passed Jira version is in list of supported
30+
if [[ "${SUPPORTED_JIRA_VERSIONS[@]}" =~ "$2" ]]; then
31+
ATTACHMENTS_TAR_URL="${DATASETS_AWS_BUCKET}/$2/${DATASETS_SIZE}/${ATTACHMENTS_TAR}"
32+
echo "Force mode. Dataset URL: ${ATTACHMENTS_TAR_URL}"
33+
else
34+
echo "Correct dataset version was not specified after --force flag."
35+
echo "Available datasets: ${SUPPORTED_JIRA_VERSIONS[@]}"
36+
exit 1
37+
fi
38+
else
39+
# No force flag
40+
exit 1
41+
fi
42+
fi
1243

1344
echo "!!! Warning !!!"
1445
echo # move to a new line
@@ -17,7 +48,7 @@ echo "You can review or modify default variables in 'Variables section' of this
1748
echo # move to a new line
1849
echo "Variables:"
1950
echo "EFS_DIR=${EFS_DIR}"
20-
echo "ATTACHMENTS_TAR_URL=${DATASETS_AWS_BUCKET}/${ATTACHMENTS_TAR}"
51+
echo "ATTACHMENTS_TAR_URL=${ATTACHMENTS_TAR_URL}"
2152
echo # move to a new line
2253
read -p "I confirm that variables are correct and want to proceed (y/n)? " -n 1 -r
2354
echo # move to a new line
@@ -39,7 +70,7 @@ fi
3970

4071
echo "Step2: Download attachments"
4172
sudo su -c "rm -rf ${ATTACHMENTS_TAR}"
42-
sudo su jira -c "wget ${DATASETS_AWS_BUCKET}/${ATTACHMENTS_TAR}"
73+
sudo su jira -c "wget ${ATTACHMENTS_TAR_URL}"
4374

4475
echo "Step3: Untar attachments to tmp folder"
4576
sudo su -c "rm -rf ${ATTACHMENTS_DIR}"

0 commit comments

Comments
 (0)