Skip to content

Commit

Permalink
JPERF-1352 Upgrade jdbc connector
Browse files Browse the repository at this point in the history
Version 8.0.33 can be used both with mysql 5 and 8.
Connector was tested successfully with Jira
- 8.22.0
- 9.0.0
- 9.3.1
  • Loading branch information
mgrzaslewicz committed Sep 13, 2023
1 parent 73bb915 commit 3a80598
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ Dropping a requirement of a major version of a dependency is a new contract.
## [Unreleased]
[Unreleased]: https://github.com/atlassian/aws-infrastructure/compare/release-3.1.1...master

### Fixed
- Use newer mysql connector v8.0.33

## [3.1.1] - 2023-09-12
[3.1.1]: https://github.com/atlassian/aws-infrastructure/compare/release-3.1.0...release-3.1.1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ internal class StandaloneNodeFormula(
connection.safeExecute("sed -i '/^jira.autoexport=/d' $jiraHome/jira-config.properties")
connection.execute("echo jira.autoexport=false >> $jiraHome/jira-config.properties")
downloadMysqlConnector(
"https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.40.tar.gz",
"https://cdn.mysql.com/archives/mysql-connector-java-8.0/mysql-connector-j-8.0.33.tar.gz",
connection
)
connection.execute("tar -xzf mysql-connector-java-5.1.40.tar.gz")
connection.execute("cp mysql-connector-java-5.1.40/mysql-connector-java-5.1.40-bin.jar $unpackedProduct/lib")
connection.execute("tar -xzf mysql-connector-j-8.0.33.tar.gz")
connection.execute("cp mysql-connector-j-8.0.33/mysql-connector-j-8.0.33.jar $unpackedProduct/lib")
AwsCli().download(pluginsTransport.location, connection, target = "$jiraHome/plugins/installed-plugins")

jdk.install(connection)
Expand Down

0 comments on commit 3a80598

Please sign in to comment.