Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- echo Starting build...
- forfiles /p %WORKSPACE%\..\%JOB_NAME%_binned /c "cmd /c del @PATH /f /q"
- echo Deleted old binned files
- REM Copy over the PBO files to the binned file. Repeat this command for all your PBO's.
- xcopy %WORKSPACE%\my_pbo %WORKSPACE%\..\%JOB_NAME%_binned\my_pbo /e /i /q
- echo Copied over folder to binned folder
- forfiles /p %WORKSPACE%\..\%JOB_NAME%_binned /c "cmd /c ..\buildpboprefix.bat @FILE @PATH %BUILD_NUMBER%"
- echo Made pboprefix files
- forfiles /p %WORKSPACE%\..\%JOB_NAME%_binned /c "cmd /c ..\binarize.exe -silent @PATH @PATH >nul 2>&1"
- forfiles /p %WORKSPACE%\..\%JOB_NAME%_binned /s /m model.cfg /c "cmd /c del @PATH /f /q"
- echo Binarised models
- forfiles /p %WORKSPACE%\..\%JOB_NAME%_binned /c "cmd /c ..\makepbo.exe -PBDX none @PATH >nul"
- echo Created PBOs
- forfiles /p %WORKSPACE%\..\%JOB_NAME%_binned /c "cmd /c if @ISDIR==TRUE rmdir /s /q @PATH"
- echo Removed binned folders
- REM I like to keep a version file with all relevant information to keep track, you can remove this if you dont want it
- echo BUILD NR: %BUILD_NUMBER% > %WORKSPACE%\..\%JOB_NAME%_binned\version.txt
- echo COMMIT: %GIT_COMMIT% >> %WORKSPACE%\..\%JOB_NAME%_binned\version.txt
- echo BRANCH: %GIT_BRANCH% >> %WORKSPACE%\..\%JOB_NAME%_binned\version.txt
- echo BUILD INFO: %BUILD_URL% >> %WORKSPACE%\..\%JOB_NAME%_binned\version.txt
- REM Repeat the following if for your other pbos to make sure the build fails if one of the pbos hasnt been build
- if not exist %WORKSPACE%\..\%JOB_NAME%_binned\my_pbo.pbo exit /b 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement