set PATH=C:\Ruby192\bin;%PATH% REM Chef 10 contains the client in the chef/ sub-directory cd chef ruby -v call bundle install --binstubs --without docgen server --path vendor/bundle || ( call rm Gemfile.lock && call bundle install -without docgen server --binstubs --path vendor/bundle ) ruby bin\rspec -r rspec_junit_formatter -f RspecJunitFormatter -o test.xml -f documentation spec/functional spec/unit spec/stress set RSPEC_ERRORLVL=%ERRORLEVEL% REM place rspec output back in jenkins working directory move test.xml .. REM Return the error level from rspec exit /B %RSPEC_ERRORLVL%