Installing Repository Templates for Bitbucket directly from Atlassian Marketplace
-
Click the admin drop-down on your Bitbucket Server instance and choose Add-ons.
-
Click Find new add-ons from the left-hand side of the page.
-
Locate Repository Templates for Bitbucket Server via search.
-
Click Install to download and install Repository Templates for Bitbucket Server.
-
You're done!
Installing Repository Templates for Bitbucket by file upload
-
Download Repository Templates for Bitbucket Server on the Atlassian Marketplace (Details Tab, click the download button).
-
Click the admin drop-down on your Bitbucket Server instance and choose Add-ons.
-
Click Manage Add-ons...
-
Click the Upload add-on link at the top right side of the page.
-
Enter the location of the JAR file you downloaded.
-
Click Upload.
-
You're done!
Extra requirement for Repository Templates 4.0.1 and 4.1.0 with Bitbucket 9 / Java 17
When using Repository Templates for Bitbucket 4.0.1 and 4.1.0 on Java 17 (required by Bitbucket 9), a JVM flag is required.
This requirement has been removed for Repository Templates 4.2.0 onwards, and we recommend to directly upgrade.
Add `--add-opens=java.base/java.lang.reflect=ALL-UNNAMED` to the JVM_SUPPORT_RECOMMENDED_ARGS environment flags of Bitbucket:
-
Navigate to your Bitbucket installation, like`/opt/atlassian/bitbucket/current/bin`
-
Edit the
_start-webapp.shfile -
Note the
#JVM_SUPPORT_RECOMMENDED_ARGS=line. Remove the#in front of it and add `--add-opens=java.base/java.lang.reflect=ALL-UNNAMED` -
Restart Bitbucket
Alternative: Define the value of the JVM_SUPPORT_RECOMMENDED_ARGS in your service manager, like in the Systemd unit definition, Docker container, etc.