From b8b4a33f9f91c547bd5b63f1a25d57a9236ccae5 Mon Sep 17 00:00:00 2001 From: dzaitsev Date: Wed, 7 May 2025 15:12:52 +0300 Subject: [PATCH] init.cmd - fix for Jenkins incorrect handle of pushd/popd --- build/init.cmd | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/build/init.cmd b/build/init.cmd index fafef12..9e6c981 100644 --- a/build/init.cmd +++ b/build/init.cmd @@ -1,12 +1,18 @@ echo Make dirs, copy init dlls -pushd %~dp0.. +:: Change to the directory where init.cmd is located +cd /d %~dp0.. + +:: Create directories if they do not exist if exist dist-dlls rmdir dist-dlls /s /q mkdir dist-dlls if exist dist-azaion rmdir dist-azaion /s /q mkdir dist-azaion echo Copying shared libs + +:: Use robocopy to copy files robocopy "C:\\share" "dist-dlls" "*" -popd \ No newline at end of file +:: Return to the previous directory +cd /d %OLDPWD%