Skip to content

Commit b503883

Browse files
committed
initialize docker-machine
1 parent 119488b commit b503883

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Jenkinsfile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,14 @@ pipeline {
1010
steps {
1111
withPythonEnv(pythonInstallation: 'Windows-CPython-36') {
1212
pybat(script: 'pip install .', returnStdout: true)
13-
pybat 'setup.py test --addopts --junit-xml=tests.xml'
13+
pybat '''
14+
set BOOT2DOCKER_VM=default
15+
set PATH=%PATH%;"C:\Program Files\Docker Toolbox\"
16+
docker-machine start %BOOT2DOCKER_VM%
17+
REM Set the environment variables to use docker-machine and docker commands
18+
@FOR /f "tokens=*" %i IN ('docker-machine env --shell cmd %BOOT2DOCKER_VM%') DO @%i
19+
setup.py test --addopts --junit-xml=tests.xml
20+
'''
1421
}
1522

1623
}
@@ -23,4 +30,4 @@ pipeline {
2330
}
2431

2532
}
26-
}
33+
}

0 commit comments

Comments
 (0)