Skip to content
This repository has been archived by the owner on Jul 31, 2022. It is now read-only.

InfluxDB2

Dylan Christopherson edited this page Jul 9, 2018 · 2 revisions

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.

Clone this wiki locally