Skip to content

Commit 4fc6c15

Browse files
committed
external bat
1 parent 0e72ac1 commit 4fc6c15

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Jenkinsfile

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,7 @@ pipeline {
1010
steps {
1111
withPythonEnv(pythonInstallation: 'Windows-CPython-36') {
1212
pybat(script: 'pip install .', returnStdout: true)
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-
'''
13+
pybat(script: jenkins.bat)
2114
}
2215

2316
}

jenkins.bat

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
set BOOT2DOCKER_VM=default
2+
set PATH=%PATH%;"C:\\Program Files\\Docker Toolbox\\"
3+
docker-machine start %BOOT2DOCKER_VM%
4+
REM Set the environment variables to use docker-machine and docker commands
5+
@FOR /f "tokens=*" %i IN ('docker-machine env --shell cmd %BOOT2DOCKER_VM%') DO @%i
6+
7+
python setup.py test --addopts --junit-xml=tests.xml

0 commit comments

Comments
 (0)