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