From 3a88705abfe94f485492e8e397902d370eb0a30e Mon Sep 17 00:00:00 2001 From: Andreas Stephanides Date: Sat, 20 Nov 2021 08:13:06 +0000 Subject: [PATCH] activate venv for pytest --- Jenkinsfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 7f0f027..850fd55 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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}" + } }} \ No newline at end of file