Commit 318d8240 authored by nimrod's avatar nimrod
Browse files

- Fetch Git submodules in Jenkins.

- User install pip (for caching purposes).
- Import to Ansible Galaxy on success.
- Commented out Molecule test (using Vagrant).
parent faa5e2b3
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -3,8 +3,8 @@ pipeline {
    stages {
        stage('install') {
            steps {
                sh 'virtualenv example'
                sh '. example/bin/activate && pip install -r tests/requirements.txt'
                sh 'git submodule update --init'
                sh 'pip install -r tests/requirements.txt --user'
                sh '. example/bin/activate && ansible-galaxy install git+file://$(pwd),$(git rev-parse --abbrev-ref HEAD) -p .molecule/roles'
                sh '. example/bin/activate && molecule dependency'
            }
@@ -12,7 +12,13 @@ pipeline {
        stage('test') {
            steps {
                sh '. example/bin/activate && pre-commit run --all-files'
                // sh 'molecule test --platform all'
            }
        }
    }
    post {
        success {
            sh 'ansible-galaxy import -v'
        }
    }
}