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