build: Make jenkins build script independent of working dir
This alleviates an unneccessary burden on callers (previously, it had to be run from the repo root dir).
This commit is contained in:
1 parent
0b35c2ccde
commit
faa8438adf
1 file changed
+6
-4
@@ -1,8 +1,10 @@
|
||||
@echo off
|
||||
|
||||
call "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\Tools\\VsDevCmd.bat"
|
||||
call .venv\\Scripts\\activate
|
||||
call set PYTHONPATH=%~dp0\..\.venv\Scripts\python
|
||||
call .venv\Scripts\python.exe tools\py\build_spark.py %*
|
||||
setlocal
|
||||
set tools_dir=%~dp0
|
||||
set venv_dir=%~dp0..\.venv\
|
||||
call "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\VsDevCmd.bat"
|
||||
call "%venv_dir%Scripts\activate"
|
||||
call python "%tools_dir%py\build_spark.py" %*
|
||||
|
||||
EXIT /B %ERRORLEVEL%
|
||||
Reference in new issue
Block a user