-
Notifications
You must be signed in to change notification settings - Fork 4
InfluxDB2
Integrating database with Jenkins
Create an admin on InfluxDB
CREATE USER admin WITH PASSWORD '<password>' WITH ALL PRIVILEGES
Create a database
CREATE DATABASE mydb
On your jenkins acccount, go into Manage Jenkins and then Manage Plugins and make sure the "InfluxDB" plugin is installed. Again, go into Manage Jenkins and find Configure System. Towards the bottom of the page you should be able to find "infuxdb target". Fill out the info. Some things you'll most likely want though:
url: http://127.0.0.1:8086
retentionPolicy: autogen //InfluxDB automatically creates this policy
Then apply and save.
At the Jenkins home page, select the test you'd like to configure with Jenkins. Once in the test select Configure. At the bottom of the page under "Post-buildActions" click the drop down "Add post-build action" and find "Publish build data to InfluxDb target". A drop down will appear and you'll be able to find the description of the database you just added.