aboutsummaryrefslogtreecommitdiff
path: root/helpers
diff options
context:
space:
mode:
authorMilosz Wasilewski <milosz.wasilewski@linaro.org>2014-07-14 19:39:33 +0100
committerMilosz Wasilewski <milosz.wasilewski@linaro.org>2014-07-14 19:39:33 +0100
commit51b5cf8cf2dc159d738b3c6194e829232733463c (patch)
treee7ac315ae6ff9c401cbdbd2bf1fa062a98435179 /helpers
parentec5817bfffd82cf5458d6103fb25ef8033a0b1d6 (diff)
fixes for production deployment
Diffstat (limited to 'helpers')
-rw-r--r--helpers/jenkins_lava.py28
1 files changed, 1 insertions, 27 deletions
diff --git a/helpers/jenkins_lava.py b/helpers/jenkins_lava.py
index c38fc33..aa12a99 100644
--- a/helpers/jenkins_lava.py
+++ b/helpers/jenkins_lava.py
@@ -293,34 +293,8 @@ def create_jenkins_build(jenkins_build, jenkins_db_job, is_umbrella = True, umbr
log.debug("Jenkins build {0} updated ({1})".format(jenkins_build.get_number(), ''.join([x for x in jenkins_build.name if ord(x) < 128])))
return db_build
except ConnectionError:
+ log.debug("Connection error on build: {0}".format(''.join([x for x in jenkins_build.name if ord(x) < 128])))
build_status, created = JenkinsBuildStatus.objects.get_or_create(name = status_name)
if umbrella_db_build:
umbrella_db_build.status = build_status
umbrella_db_build.save()
-
-
-def get_lava_hardware():
- lava_response = [
- {'idle': 0, 'busy': 1, 'name': 'arndale', 'offline': 2},
- {'idle': 1, 'busy': 0, 'name': 'arndale-octa', 'offline': 0},
- {'idle': 2, 'busy': 0, 'name': 'beaglebone-black', 'offline': 2},
- {'idle': 0, 'busy': 0, 'name': 'beaglexm', 'offline': 0},
- {'idle': 0, 'busy': 0, 'name': 'dynamic-vm', 'offline': 0},
- {'idle': 0, 'busy': 0, 'name': 'highbank', 'offline': 0},
- {'idle': 1, 'busy': 0, 'name': 'ifc6410', 'offline': 0},
- {'idle': 5, 'busy': 0, 'name': 'kvm', 'offline': 3},
- {'idle': 0, 'busy': 0, 'name': 'origen', 'offline': 0},
- {'idle': 3, 'busy': 0, 'name': 'panda', 'offline': 0},
- {'idle': 0, 'busy': 0, 'name': 'qemu', 'offline': 3},
- {'idle': 1, 'busy': 0, 'name': 'rtsm_foundation-armv8', 'offline': 0},
- {'idle': 2, 'busy': 0, 'name': 'rtsm_fvp_base-aemv8a', 'offline': 1},
- {'idle': 0, 'busy': 0, 'name': 'rtsm_ve-a15x1-a7x1', 'offline': 0},
- {'idle': 0, 'busy': 0, 'name': 'snowball_sd', 'offline': 0},
- {'idle': 2, 'busy': 0, 'name': 'vayu', 'offline': 0},
- {'idle': 1, 'busy': 0, 'name': 'vexpress-a9', 'offline': 0},
- {'idle': 1, 'busy': 0, 'name': 'vexpress-tc2', 'offline': 0},
- {'idle': 1, 'busy': 0, 'name': 'wg', 'offline': 0},
- {'idle': 0, 'busy': 0, 'name': 'x86', 'offline': 0}
- ]
-
- return [hw['name'] for hw in lava_response]