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'
}
}
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'