|
|
@ -19,6 +19,7 @@ from jenkinsapi.custom_exceptions import NoBuildData
|
|
|
|
from jenkinsapi.jenkins import Jenkins
|
|
|
|
from jenkinsapi.jenkins import Jenkins
|
|
|
|
from os import getenv
|
|
|
|
from os import getenv
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class JenkinsModule:
|
|
|
|
class JenkinsModule:
|
|
|
|
"""Jenkins module for the Metrics program"""
|
|
|
|
"""Jenkins module for the Metrics program"""
|
|
|
|
|
|
|
|
|
|
|
@ -103,7 +104,6 @@ class JenkinsModule:
|
|
|
|
nonpassing, failing, total = self._get_data()
|
|
|
|
nonpassing, failing, total = self._get_data()
|
|
|
|
date = "strftime('%s', 'now')"
|
|
|
|
date = "strftime('%s', 'now')"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Craft the str
|
|
|
|
# Craft the str
|
|
|
|
command = "INSERT INTO jenkins VALUES ({}, {}, {}, {});".format(
|
|
|
|
command = "INSERT INTO jenkins VALUES ({}, {}, {}, {});".format(
|
|
|
|
date, nonpassing, failing, total)
|
|
|
|
date, nonpassing, failing, total)
|
|
|
|