blob: 43f30fbf09bfe701e9d6d648739db7b7207465ae [file] [log] [blame]
Ruslan Gustomiasova43be9e2019-06-27 14:45:33 +02001package 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
13def 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}