Removed dir block from pipeline
This commit is contained in:
parent
8887f1b2bd
commit
63d8eeb03e
17
Jenkinsfile
vendored
17
Jenkinsfile
vendored
@ -14,15 +14,14 @@ pipeline {
|
|||||||
stage('Code Tests') {
|
stage('Code Tests') {
|
||||||
steps {
|
steps {
|
||||||
container('python') {
|
container('python') {
|
||||||
dir('api') {
|
sh '''
|
||||||
sh '''
|
cd api
|
||||||
cd api
|
python3 -m venv env
|
||||||
python3 -m venv env
|
source env/bin/activate
|
||||||
source env/bin/activate
|
pip install -r requirements.txt pytest
|
||||||
pip install -r requirements.txt pytest
|
python3 -m pytest --junit-xml=pytest_junit.xml
|
||||||
python3 -m pytest --junit-xml=pytest_junit.xml
|
'''
|
||||||
'''
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
post {
|
post {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user