2023-10-24 17:51:47 +02:00
|
|
|
pipeline {
|
2023-10-24 18:40:20 +02:00
|
|
|
agent {
|
|
|
|
docker { image 'python:3' }
|
|
|
|
}
|
2023-10-24 17:51:47 +02:00
|
|
|
|
|
|
|
stages {
|
|
|
|
stage('Build') {
|
|
|
|
steps {
|
2023-10-24 18:41:27 +02:00
|
|
|
sh 'pip install black'
|
2023-10-24 17:51:47 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Test') {
|
|
|
|
steps {
|
|
|
|
echo 'Testing..'
|
2023-10-24 18:41:27 +02:00
|
|
|
sh 'black ./'
|
2023-10-24 17:51:47 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Deploy') {
|
|
|
|
steps {
|
|
|
|
echo 'Deploying....'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|