activate venv for pytest

This commit is contained in:
2021-11-20 08:13:06 +00:00
parent f11a920ee4
commit 3a88705abf

7
Jenkinsfile vendored
View File

@@ -21,7 +21,7 @@ pipeline {
steps{ steps{
script { script {
app.inside("-u root:root") { app.inside("-u root:root") {
sh 'pytest -v' sh '. /opt/venv/bin/activate && pytest -v'
} }
} }
} }
@@ -47,6 +47,9 @@ pipeline {
} }
} }
//withCredentials([usernamePassword(credentialsId: "${GIT_CREDENTIALS_ID}", passwordVariable: 'GIT_PASSWORD', usernameVariable: 'GIT_USERNAME')]) {
//sh "git tag -a ${CUSTOM_TAG_NAME} -m 'Jenkinsfile push tag'"
//sh "git push https://${GIT_USERNAME}:${GIT_PASSWORD}@git.repohere.com/scm/reponamehere.git ${CUSTOM_TAG_NAME}"
}
}} }}