From 048a7239a59e3f09847937a0998b55e440f10ebd Mon Sep 17 00:00:00 2001 From: "shikhar.s" Date: Fri, 5 Jul 2019 20:05:31 +0530 Subject: [PATCH] changes in file --- Jenkinsfile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index c10ae4ef..cf3389c0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,6 +4,19 @@ pipeline { triggers { pollSCM('*/5 * * * *') } + + + options { + buildDiscarder( + // Only keep the 10 most recent builds + logRotator(numToKeepStr:'10')) + } + environment { + projectName = 'BitMessage' + emailTo = 'kuldeep.m@cisinlabs.com' + emailFrom = 'kuldeep.m@cisinlabs.com' + VIRTUAL_ENV = "${env.WORKSPACE}/venv" + } stages { @@ -66,7 +79,6 @@ pipeline { virtualenv venv #. venv/bin/activate export PATH=${VIRTUAL_ENV}/bin:${PATH} - sudo python setup.py install sudo var/lib/jenkins/.local/bin/nosetests --with-xunit tests '''