Create virtual environment
Some checks failed
Amarillo/amarillo-gitea/amarillo-core/pipeline/head There was a failure building this commit

This commit is contained in:
Csaba 2023-12-13 15:50:15 +01:00
parent f0a67bf4ea
commit b19d2e9dbb

27
Jenkinsfile vendored
View file

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