From 2ed23159ca1a6595609028d15ffe5e53cbc5745c Mon Sep 17 00:00:00 2001 From: John Colvin Date: Wed, 26 Jul 2023 11:49:35 -0400 Subject: [PATCH] style: Clean up jenkins build script * Get rid of double backslashes in quoted paths to improve readability * Call 'activate.bat' instead of 'activate' (official python docs say to use the former) * Add docs --- tools/jenkins_build_spark.cmd | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/jenkins_build_spark.cmd b/tools/jenkins_build_spark.cmd index c3c33a6b7..1c56f8763 100644 --- a/tools/jenkins_build_spark.cmd +++ b/tools/jenkins_build_spark.cmd @@ -1,10 +1,13 @@ @echo off +@REM Build script designed for our jenkins build job(s). It assumes the py +@REM venv already exists. + 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 "%venv_dir%Scripts\activate.bat" call python "%tools_dir%py\build_spark.py" %* EXIT /B %ERRORLEVEL%