i want to develop a bamboo plugin, and i need to test it in a safe environment.
i installed bamboo server on my macbook, and postgres.app for the database.
I used this to connect to the database using jdbc, but I get the error
No suitable driver found for jdbc:postgresql://localhost:5432/bamboo
I tried including
Class.forName("org.postgresql.Driver");
in my java class, but it does not find the class.
How do I include the driver in my plugin ?
You'll have to add the jdbc driver into the /lib directory of tomcat for Bamboo
https://jdbc.postgresql.org/download.html
and then restart bamboo
I don't find a tomcat directory, where is it ?
I tried adding the jar to
${bambooHome}/atlassian-bamboo/WEB-INF/lib/
but it does not work
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How did you install your bamboo?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I downloaded the archive here https://confluence.atlassian.com/bamboo/installing-bamboo-on-mac-os-x-289276789.html
for writing the plugin I installed atlassian sdk using homebrew.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try ${bambooHome}/lib then check that you have the driver that matches your postgres version
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>9.4.1212</version>
</dependency>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried
DriverManager.getDrivers()
and it return an empty list
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Stand out as a skilled Confluence Cloud administrator. The Confluence Administration for Cloud certification proves you can configure permissions, manage site and space settings, and monitor activity—ensuring secure, effective collaboration for your team.
Start here
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.