summaryrefslogtreecommitdiff
path: root/Jenkinsfile
diff options
context:
space:
mode:
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile19
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"
+ }
+ }
+ }
+ }
+}