diff options
| author | Oleg Pykhalov <go.wigust@gmail.com> | 2019-12-31 23:50:11 +0300 |
|---|---|---|
| committer | Oleg Pykhalov <go.wigust@gmail.com> | 2020-01-01 00:11:05 +0300 |
| commit | 3b51729317fd6e602e75204448866b5c0985bd28 (patch) | |
| tree | 9d75f177c6f689a2baa2445929d19c8a168e067f | |
| download | ansible-cmdb-majordomo-3b51729317fd6e602e75204448866b5c0985bd28.tar.gz | |
Initial commit.
| -rw-r--r-- | Jenkinsfile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..6d5c430 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,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" + } + } + } + } +} |
