Skip to content

Commit

Permalink
JENKINS-33063
Browse files Browse the repository at this point in the history
  • Loading branch information
vfarcic committed Mar 7, 2016
1 parent ab5c279 commit 6a49c22
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -121,9 +121,9 @@ class Docker implements Serializable {
}
}

public Container run(String args = '') {
public Container run(String args = '', String command = "") {
docker.node {
docker.script.sh "docker run -d${args != '' ? ' ' + args : ''} ${id} > .container"
docker.script.sh "docker run -d${args != '' ? ' ' + args : ''} ${id} ${command} > .container"
def container = docker.script.readFile('.container').trim()
docker.script.dockerFingerprintRun containerId: container, toolName: docker.script.env.DOCKER_TOOL_NAME
new Container(docker, container)
Expand Down

0 comments on commit 6a49c22

Please sign in to comment.