Skip to content

Commit

Permalink
Fix logic error buildscript bat file.
Browse files Browse the repository at this point in the history
The string-contains check requires a not for it to be considered true
as the test is whether replacing the word in the string produces the same
result. If it does not then it is considered to be in the string.

Refs #9877
  • Loading branch information
martyngigg committed Jul 14, 2014
1 parent b8a7d51 commit 8811af1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Code/Mantid/Build/Jenkins/buildscript.bat
Expand Up @@ -46,10 +46,10 @@ if ERRORLEVEL 1 exit /B %ERRORLEVEL%
:: Check the required build configuration
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
set BUILD_CONFIG=
if "%JOB_NAME%"=="%JOB_NAME:debug=%" (
if not "%JOB_NAME%"=="%JOB_NAME:debug=%" (
set BUILD_CONFIG=Debug
) else (
if "%JOB_NAME%"=="%JOB_NAME:relwithdbg=%" (
if not "%JOB_NAME%"=="%JOB_NAME:relwithdbg=%" (
set BUILD_CONFIG=RelWithDbg
) else (
set BUILD_CONFIG=Release
Expand Down

0 comments on commit 8811af1

Please sign in to comment.