diff options
author | Jack Morgan <jack.morgan@intel.com> | 2017-12-07 19:39:00 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-12-07 19:39:00 +0000 |
commit | d962c79fa747f07e5b55bc13aa73698b0df7d26f (patch) | |
tree | a737a653775e851b2694a13e5c5720b079f78dd4 /dashboard/src/pharos_dashboard | |
parent | a28e3f98ec1870320a699d3b726331e5f2f03acf (diff) | |
parent | 5654cfe05930a331978eb9f7448975bd0d1b96c2 (diff) |
Merge "Abstract Hard-Coded URLs to Config File"
Diffstat (limited to 'dashboard/src/pharos_dashboard')
-rw-r--r-- | dashboard/src/pharos_dashboard/settings.py | 6 |
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/' + |