Corrected directory in jenkins pipeline
This commit is contained in:
parent
dcd9a39b46
commit
fb260a0f6d
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -14,6 +14,7 @@ pipeline {
|
||||
stage('Test python app') {
|
||||
steps {
|
||||
script {
|
||||
dir('api') {
|
||||
sh '''
|
||||
python3 -m venv env
|
||||
env/bin/pip install -r requirements.txt pytest
|
||||
@ -21,6 +22,7 @@ pipeline {
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
always {
|
||||
junit testResults: '**/*pytest_junit.xml'
|
||||
|
Loading…
x
Reference in New Issue
Block a user