summaryrefslogtreecommitdiff
path: root/Jenkinsfile
diff options
context:
space:
mode:
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile24
1 files changed, 15 insertions, 9 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index d6b64ca..c3b3442 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -22,14 +22,20 @@ pipeline {
}
}
}
- // TODO: Fix Generate reports stage
- // stage("Generate reports") {
- // agent { label "guixsd" }
- // 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"
- // }
- // }
- // }
+ stage("Generate reports") {
+ agent { label "guixsd" }
+ steps {
+ sh(["docker", "run",
+ "--workdir", "/home/oleg/ansible-out",
+ "--network=host",
+ "--name", "ansible-cmdb",
+ "--rm",
+ "--volume", "/home/oleg/ansible-out:/home/oleg/ansible-out",
+ "ansible-cmdb",
+ "ansible-cmdb", "--template", "html_fancy_split",
+ "-p", "local_js=1",
+ "/home/oleg/ansible-out/out"].join(" "))
+ }
+ }
}
}