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 | 1b9e76a483822a830a1b67acb817467ee907b93c (patch) | |
tree | f8c1144087a6a58c5a78b8e20076e3ca49d26a6c /src/pharos_dashboard/settings.py | |
parent | e3dc55b54713e4a9e015cffcbc35ef811ff6606b (diff) | |
parent | 50ca17b63ab7f79ec2b8326d3d1e5f3448091214 (diff) |
Merge "Abstract Hard-Coded URLs to Config File"
Diffstat (limited to 'src/pharos_dashboard/settings.py')
-rw-r--r-- | src/pharos_dashboard/settings.py | 6 |
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/' + |