Skip to content

Commit fb8108e

Browse files
authored
Fix: missed 'set' to assign environment variable and log it (#11869)
In batch shell to assign a variable we need set, else the shell interpreter log an error and continue Close #11869
1 parent d11b049 commit fb8108e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ci/unit_tests.bat

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ echo Using drive !use_drive! for %WORKSPACE%
4141

4242
echo Running core tests..
4343
if defined BUILD_JAVA_HOME (
44-
GRADLE_OPTS="%GRADLE_OPTS% -Dorg.gradle.java.home=%BUILD_JAVA_HOME%"
44+
set GRADLE_OPTS="%GRADLE_OPTS% -Dorg.gradle.java.home=%BUILD_JAVA_HOME%"
45+
echo GRADLE_OPTS is: %GRADLE_OPTS%, BUILD_JAVA_HOME: %BUILD_JAVA_HOME%
4546
)
4647
call .\gradlew.bat test --console=plain --no-daemon --info
4748

0 commit comments

Comments
 (0)