39 lines
1018 B
Groovy
39 lines
1018 B
Groovy
pipeline {
|
|
agent any
|
|
|
|
triggers {
|
|
pollSCM('*/5 * * * *')
|
|
}
|
|
|
|
|
|
stages {
|
|
stage('Build environment') {
|
|
steps {
|
|
sh '''source /home/cis/Desktop/ENV/pybitenv/bin/activate
|
|
pip install -r /home/cis/Desktop/Python/PyBitmessage/requirements.txt
|
|
'''
|
|
}
|
|
}
|
|
stage('Test environment') {
|
|
steps {
|
|
sh '''source /home/cis/Desktop/ENV/pybitenv/bin/activate
|
|
cd /home/cis/Desktop/Python/PyBitmessage
|
|
sudo python setup.py install
|
|
sudo /home/cis/.local/bin/nosetests --with-xunit tests
|
|
'''
|
|
}
|
|
}
|
|
stage('Test Run') {
|
|
steps {
|
|
sh '''python /home/cis/Desktop/Python/PyBitmessage/src/bitmessagemain.py -t
|
|
'''
|
|
}
|
|
}
|
|
}
|
|
post {
|
|
failure {
|
|
echo "Send e-mail, when failed"
|
|
}
|
|
}
|
|
}
|