33 lines
538 B
Groovy
33 lines
538 B
Groovy
pipeline {
|
|
agent any
|
|
|
|
environment {
|
|
// pyenv
|
|
PYENV_ROOT="$HOME/.pyenv"
|
|
PYENV_SHELL="bash"
|
|
// pipenv
|
|
PIPENV_YES="true"
|
|
PIPENV_NOSPIN="YES"
|
|
WORKON_HOME="$WORKSPACE/venv"
|
|
PATH="$PYENV_ROOT/bin:/opt/packer:$PATH"
|
|
}
|
|
|
|
stages {
|
|
stage('migration') {
|
|
steps {
|
|
script {
|
|
sh 'pipenv run makemigrations'
|
|
}
|
|
}
|
|
}
|
|
|
|
stage('build') {
|
|
steps {
|
|
script {
|
|
sh 'cd django_lostplaces'
|
|
sh 'python setup.py bdist_wheel --universal'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |