Ruslan Gustomiasov | a43be9e | 2019-06-27 14:45:33 +0200 | [diff] [blame^] | 1 | package com.mirantis.mk |
2 | /** | ||||
3 | * Tox functions | ||||
4 | */ | ||||
5 | |||||
6 | /** | ||||
7 | * Run tox | ||||
8 | * | ||||
9 | * @param args string with tox arguments | ||||
10 | * @param returnStdout return stdout from tox | ||||
11 | */ | ||||
12 | |||||
13 | def runTox(String args, boolean returnStdout = true){ | ||||
14 | return docker.image('docker-prod-local.docker.mirantis.net/mirantis/external/tox').inside { | ||||
15 | sh(script: "tox ${args}", returnStdout: returnStdout) | ||||
16 | } | ||||
17 | } |