diff --git a/Jenkinsfile b/Jenkinsfile index 2c7dcb7..7c8c51b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,26 +4,21 @@ pipeline { image 'python:3' } } - tools { - 'org.jenkinsci.plugins.docker.commons.tools.DockerTool' 'docker' - } stages { - stage('Check python version') { + stage('Create virtual environment') { steps { - sh 'python --version' - } - } - stage('Run ls and pwd') { - steps { - sh 'pwd' - sh 'ls -l' - } - } - stage('Build') { - steps { - echo 'Building' + echo 'Creating virtual environment' + sh '''python -m venv .venv + . venv/bin/activate''' + } } + // stage('pip install') { + // steps { + // echo 'Installing packages' + // sh 'pip ins' + // } + // } stage('Test') { steps { echo 'Testing'