aboutsummaryrefslogtreecommitdiffstats
path: root/src/pharos_dashboard/settings.py
diff options
context:
space:
mode:
authorJack Morgan <jack.morgan@intel.com>2017-12-07 19:39:00 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-12-07 19:39:00 +0000
commit1b9e76a483822a830a1b67acb817467ee907b93c (patch)
treef8c1144087a6a58c5a78b8e20076e3ca49d26a6c /src/pharos_dashboard/settings.py
parente3dc55b54713e4a9e015cffcbc35ef811ff6606b (diff)
parent50ca17b63ab7f79ec2b8326d3d1e5f3448091214 (diff)
Merge "Abstract Hard-Coded URLs to Config File"
Diffstat (limited to 'src/pharos_dashboard/settings.py')
-rw-r--r--src/pharos_dashboard/settings.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pharos_dashboard/settings.py b/src/pharos_dashboard/settings.py
index 546b174..83ad172 100644
--- a/src/pharos_dashboard/settings.py
+++ b/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/'
+