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') {
|
stage('Test python app') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
|
dir('api') {
|
||||||
sh '''
|
sh '''
|
||||||
python3 -m venv env
|
python3 -m venv env
|
||||||
env/bin/pip install -r requirements.txt pytest
|
env/bin/pip install -r requirements.txt pytest
|
||||||
@ -21,6 +22,7 @@ pipeline {
|
|||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
post {
|
post {
|
||||||
always {
|
always {
|
||||||
junit testResults: '**/*pytest_junit.xml'
|
junit testResults: '**/*pytest_junit.xml'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user