Skip to content

Commit

Permalink
Fix start java when JAVA_HOME contains character space (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
kgermanov authored Mar 22, 2023
1 parent fb8885f commit 26db2ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/attachments/JenkinsAgentStartup.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ GOTO :eof
)
@CALL :logMessage "INFO" "PUSHD %SLAVE_HOME%"
@PUSHD "%SLAVE_HOME%" || EXIT /b 1
@SET _cmdLine=%JAVA_HOME%bin\java -Djava.util.logging.config.file=jenkins-slave.logging.properties %SLAVE_JVM_ARGS% -jar slave.jar -jnlpUrl %SLAVE_JNLP_URL% %SLAVE_PARAMS%
@SET _cmdLine="%JAVA_HOME%bin\java" -Djava.util.logging.config.file=jenkins-slave.logging.properties %SLAVE_JVM_ARGS% -jar slave.jar -jnlpUrl %SLAVE_JNLP_URL% %SLAVE_PARAMS%
@CALL :logMessage "INFO" "%_cmdLine%"
@%_cmdLine%
@CALL :logMessage "INFO" "... slave has exited with code %ERRORLEVEL%"
Expand Down

0 comments on commit 26db2ff

Please sign in to comment.