| 1234567891011121314151617181920212223242526 |
- pipeline {
- agent any
- stages {
- stage('Build') {
- steps {
- echo 'Building...'
- sh 'python3.7 -m poetry install --develop .'
- sh 'python3.7 -m poetry install'
- }
- }
- stage('Test') {
- steps {
- echo 'Testing...'
- sh 'python3.7 -m poetry run tox'
- sh 'rm -rf ./tests/__pycache__/'
- }
- }
- stage('Deploy') {
- steps {
- echo 'Deploying....'
- sh 'ansible-playbook -vvvv -i dockerbox, ansible_playbook.yaml'
- }
- }
- }
- }
|