2021-07-10 13:22:11 +02:00
|
|
|
pipeline {
|
2021-07-16 13:06:10 +02:00
|
|
|
agent {
|
|
|
|
docker {
|
|
|
|
image 'kennethreitz/pipenv'
|
2021-07-16 13:08:42 +02:00
|
|
|
args '--user root --privileged'
|
2021-07-16 13:06:10 +02:00
|
|
|
}
|
|
|
|
}
|
2021-07-10 13:22:11 +02:00
|
|
|
|
2021-07-10 13:42:26 +02:00
|
|
|
environment {
|
|
|
|
// pipenv
|
|
|
|
PIPENV_YES="true"
|
|
|
|
PIPENV_NOSPIN="YES"
|
|
|
|
}
|
|
|
|
|
2021-07-10 13:22:11 +02:00
|
|
|
stages {
|
2021-07-16 13:11:10 +02:00
|
|
|
|
|
|
|
stage('setup') {
|
|
|
|
steps {
|
|
|
|
script {
|
|
|
|
sh 'pipenv install'
|
|
|
|
sh 'pipenv install --dev'
|
2021-07-16 13:24:01 +02:00
|
|
|
sh 'pip install setuptools'
|
2021-07-16 13:11:10 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-07-10 13:32:56 +02:00
|
|
|
stage('migration') {
|
2021-07-10 13:31:34 +02:00
|
|
|
steps {
|
|
|
|
script {
|
2021-07-10 13:32:56 +02:00
|
|
|
sh 'pipenv run makemigrations'
|
2021-07-10 13:31:34 +02:00
|
|
|
}
|
2021-07-10 13:30:10 +02:00
|
|
|
}
|
2021-07-10 13:22:11 +02:00
|
|
|
}
|
|
|
|
|
2021-07-10 13:32:56 +02:00
|
|
|
stage('build') {
|
2021-07-10 13:31:34 +02:00
|
|
|
steps {
|
|
|
|
script {
|
2021-07-16 13:31:03 +02:00
|
|
|
sh 'pipenv run build'
|
2021-07-10 13:31:34 +02:00
|
|
|
}
|
2021-07-10 13:30:10 +02:00
|
|
|
}
|
2021-07-10 13:22:11 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|