summaryrefslogtreecommitdiffstats
path: root/dashboard/src/pharos_dashboard
diff options
context:
space:
mode:
authorSawyer Bergeron <sbergeron@iol.unh.edu>2017-11-03 14:36:19 -0400
committerSawyer Bergeron <sbergeron@iol.unh.edu>2017-11-03 16:43:15 -0400
commit5654cfe05930a331978eb9f7448975bd0d1b96c2 (patch)
treec6b1796898282c2181221f5b8bbd38f8d670b72d /dashboard/src/pharos_dashboard
parentcde5479d94eb3ca175df8b8e3d1f7dec8b7bbda4 (diff)
Abstract Hard-Coded URLs to Config File
JIRA: PHAROS-317 The Jenkins URL configuration now works the same as the Jira URL configuration, with a base URL in the config.env file, with settings.py calculating the final URLs to be used in adapter.py. Change-Id: I79b4784ab39afdb789a24e4c0f1e8a3ae3566421 Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
Diffstat (limited to 'dashboard/src/pharos_dashboard')
-rw-r--r--dashboard/src/pharos_dashboard/settings.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/dashboard/src/pharos_dashboard/settings.py b/dashboard/src/pharos_dashboard/settings.py
index 546b174..83ad172 100644
--- a/dashboard/src/pharos_dashboard/settings.py
+++ b/dashboard/src/pharos_dashboard/settings.py
@@ -182,3 +182,9 @@ CELERYBEAT_SCHEDULE = {
'schedule': timedelta(hours=24)
},
}
+# Jenkins Settings
+ALL_SLAVES_URL = os.environ['JENKINS_URL'] + '/computer/api/json?tree=computer[displayName,offline,idle]'
+CI_SLAVES_URL = os.environ['JENKINS_URL'] + '/label/ci-pod/api/json?tree=nodes[nodeName,offline,idle]'
+ALL_JOBS_URL = os.environ['JENKINS_URL'] + '/api/json?tree=jobs[displayName,url,lastBuild[fullDisplayName,building,builtOn,timestamp,result]'
+GET_SLAVE_URL = os.environ['JENKINS_URL'] + '/computer/'
+