activate venv for pytest
This commit is contained in:
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
@@ -21,7 +21,7 @@ pipeline {
|
||||
steps{
|
||||
script {
|
||||
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}"
|
||||
}
|
||||
|
||||
}}
|
||||
Reference in New Issue
Block a user