Added jenkinsfile

This commit is contained in:
2024-10-22 19:24:04 -04:00
parent 13a8530e64
commit dbbf64821f

20
jenkinsfile Normal file
View File

@@ -0,0 +1,20 @@
pipeline {
agent { label 'jenkins-agent' }
stages {
stage('Build') {
steps {
sh 'docker-compose build'
}
}
stage('Test') {
steps {
sh 'docker-compose run --rm app python -m pytest'
}
}
stage('Deploy') {
steps {
sh 'docker-compose up -d'
}
}
}
}