everybody-mov/Jenkinsfile

29 lines
480 B
Plaintext
Raw Normal View History

2022-09-01 03:23:10 +00:00
pipeline {
2022-09-01 03:32:10 +00:00
agent {
docker {
image 'python:3.10-slim-bullseye'
}
}
2022-09-01 03:23:10 +00:00
stages {
stage('Setup') {
steps {
2022-09-01 04:12:31 +00:00
sh 'python -m pip install pipenv'
sh 'python -m pipenv install'
2022-09-01 03:23:10 +00:00
}
}
stage('Check') {
steps {
2022-09-01 04:12:31 +00:00
sh 'python -m pipenv run bandit -r .'
2022-09-01 03:23:10 +00:00
}
}
}
post {
always {
cleanWs()
}
}
}