summaryrefslogtreecommitdiff
path: root/Jenkinsfile
blob: 6d5c4304b6458adc19a8fddb2136247aa4047768 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
pipeline {
    agent {
        label "master"
    }
    stages {
        stage("Fetch data") {
            steps {
                sh "ansible -m setup --tree /home/oleg/ansible-out/out majordomo"
            }
        }
        stage("Generate reports") {
            steps {
                dir("/home/oleg/ansible-out") {
                    sh "env PATH=/home/oleg/bin:$PATH /home/oleg/.local/bin/ansible-cmdb -t html_fancy_split -p local_js=1 /home/oleg/ansible-out/out"
                }
            }
        }
    }
}