chnages in jenkins

This commit is contained in:
cis-kuldeep 2019-07-03 19:30:16 +05:30 committed by GitHub
parent a526740e2f
commit 7ef2acc2d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

6
Jenkinsfile vendored
View File

@ -9,16 +9,14 @@ pipeline {
stages { stages {
stage('Build environment') { stage('Build environment') {
steps { steps {
sh '''export WORKSPACE=`pwd` sh '''source /home/cis/Desktop/ENV/pybitenv/bin/activate
source /home/cis/Desktop/ENV/pybitenv/bin/activate
pip install -r /home/cis/Desktop/Python/PyBitmessage/requirements.txt pip install -r /home/cis/Desktop/Python/PyBitmessage/requirements.txt
''' '''
} }
} }
stage('Test environment') { stage('Test environment') {
steps { steps {
sh '''export WORKSPACE=`pwd` sh '''source /home/cis/Desktop/ENV/pybitenv/bin/activate
source /home/cis/Desktop/ENV/pybitenv/bin/activate
cd /home/cis/Desktop/Python/PyBitmessage cd /home/cis/Desktop/Python/PyBitmessage
sudo python setup.py install sudo python setup.py install
sudo /home/cis/.local/bin/nosetests --with-xunit tests sudo /home/cis/.local/bin/nosetests --with-xunit tests