2020-11-30 23:14:50 +01:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
|
|
|
|
stages {
|
2020-12-01 19:46:23 +01:00
|
|
|
stage('Build') {
|
|
|
|
steps {
|
|
|
|
sh 'cd rest-app'
|
|
|
|
sh 'pip3 install -r requirements.txt'
|
|
|
|
}
|
|
|
|
}
|
2020-11-30 23:14:50 +01:00
|
|
|
stage('Test') {
|
|
|
|
steps {
|
2020-12-01 19:46:23 +01:00
|
|
|
sh 'cd rest-app'
|
|
|
|
sh 'python3 manage.py test'
|
2020-11-30 23:14:50 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-12-01 19:46:23 +01:00
|
|
|
}
|