31 lines
598 B
Groovy
31 lines
598 B
Groovy
pipeline {
|
|
|
|
agent {
|
|
docker {
|
|
image 'python:3.10-buster'
|
|
}
|
|
}
|
|
|
|
stages {
|
|
stage('Setup') {
|
|
steps {
|
|
sh 'python -m pip install --no-cache-dir --upgrade pip'
|
|
sh 'python -m pip install --no-cache-dir pipenv --user'
|
|
sh 'python -m pipenv install'
|
|
}
|
|
}
|
|
stage('Check') {
|
|
// Security check.
|
|
steps {
|
|
sh 'python -m pipenv run bandit -r .'
|
|
}
|
|
}
|
|
}
|
|
|
|
post {
|
|
always {
|
|
cleanWs()
|
|
}
|
|
}
|
|
|
|
} |