everybody-mov/Jenkinsfile

35 lines
684 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 {
2022-09-01 04:39:40 +00:00
image 'python:3.10-slim-bullseye'
2022-09-01 03:32:10 +00:00
}
}
2022-09-01 03:23:10 +00:00
2022-09-01 04:41:17 +00:00
environment {
HOME = "${env.WORKSPACE}"
}
2022-09-01 03:23:10 +00:00
stages {
stage('Setup') {
steps {
2022-09-01 04:41:17 +00:00
sh 'python -m pip install --no-cache-dir --upgrade --user pip'
sh 'python -m pip install --no-cache-dir pipenv --user'
2022-09-01 04:44:15 +00:00
sh 'python -m pipenv install --dev'
2022-09-01 03:23:10 +00:00
}
}
stage('Check') {
2022-09-01 04:19:44 +00:00
// Security check.
2022-09-01 03:23:10 +00:00
steps {
2022-09-01 04:47:17 +00:00
sh 'python -m pipenv run bandit tweetbot.py'
2022-09-01 03:23:10 +00:00
}
}
}
post {
always {
cleanWs()
}
}
}