diff options
| author | Oleg Pykhalov <go.wigust@gmail.com> | 2020-05-10 18:33:08 +0300 |
|---|---|---|
| committer | Oleg Pykhalov <go.wigust@gmail.com> | 2020-05-10 18:33:08 +0300 |
| commit | b9778bf7a2c1c199a91b245da74bf545a940dfe1 (patch) | |
| tree | 8d61332d7d5c58745e0d0c0a0948fd8572e841e6 | |
| parent | Jenkinsfile: Fetch data: Add agent. (diff) | |
| download | ansible-cmdb-majordomo-b9778bf7a2c1c199a91b245da74bf545a940dfe1.tar.gz | |
Jenkinsfile: Wrap Ansible with ansiColor.
| -rw-r--r-- | Jenkinsfile | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Jenkinsfile b/Jenkinsfile index 20172df..edce932 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -12,11 +12,13 @@ pipeline { stage("Fetch data") { agent { label "guixsd" } steps { - sh (["ansible", - "--limit", "'majordomo:!router-miran1.intr:!vpn-dh.majordomo.ru:!router4.intr:!deprecated'" - , "-m", "setup", - "--tree", "/home/oleg/ansible-out/out", - "majordomo"].join(" ")) + ansiColor("xterm") { + sh (["ansible", + "--limit", "'majordomo:!router-miran1.intr:!vpn-dh.majordomo.ru:!router4.intr:!deprecated'" + , "-m", "setup", + "--tree", "/home/oleg/ansible-out/out", + "majordomo"].join(" ")) + } } } stage("Generate reports") { |
