From a3e19c5bd6bbde745f0a580081819741cf32a406 Mon Sep 17 00:00:00 2001 From: mprahl Date: Wed, 8 Nov 2017 10:30:12 -0500 Subject: [PATCH] Add a timeout for the Jenkins test suite --- Jenkinsfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 007c9f45..73755405 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -35,8 +35,14 @@ node('factory2'){ onmyduffynode "git clone -b \"${env.BRANCH_NAME}\" https://pagure.io/fm-orchestrator" } + stage('Prepare Node') { + onmyduffynode 'cd fm-orchestrator && pip install -r requirements.txt && pip install -r test-requirements.txt && python setup.py develop' + } + stage('Run Test Suite') { - onmyduffynode 'cd fm-orchestrator && pip install -r requirements.txt && pip install -r test-requirements.txt && python setup.py develop && flake8 --ignore E731 --exclude .tox,.git,module_build_service/migrations && pytest -v tests/' + timeout(600) { + onmyduffynode 'cd fm-orchestrator && flake8 --ignore E731 --exclude .tox,.git,module_build_service/migrations && pytest -v tests/' + } } }catch (e){