Skip to content

Commit ce94434

Browse files
committed
Merge pull request jenkinsci#1676 from stephenc/jenkins-28111
[FIXED JENKINS-28111] JNLP slave JVM Options are inconsistently applied
2 parents 5b4ed2d + 647ccb0 commit ce94434

File tree

1 file changed

+2
-2
lines changed
  • core/src/main/resources/hudson/slaves/JNLPLauncher

1 file changed

+2
-2
lines changed

core/src/main/resources/hudson/slaves/JNLPLauncher/main.jelly

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ THE SOFTWARE.
5757
<p>
5858
${%Or if the slave is headless:}
5959
</p>
60-
<pre>java -jar <a href="${rootURL}/jnlpJars/slave.jar">slave.jar</a> -jnlpUrl ${h.inferHudsonURL(request)}${it.url}slave-agent.jnlp</pre>
60+
<pre>java${it.launcher.vmargs == null ? '' : ' ' + it.launcher.vmargs} -jar <a href="${rootURL}/jnlpJars/slave.jar">slave.jar</a> -jnlpUrl ${h.inferHudsonURL(request)}${it.url}slave-agent.jnlp</pre>
6161
</li>
6262
</j:when>
6363
<j:otherwise>
@@ -66,7 +66,7 @@ THE SOFTWARE.
6666
${%Run from slave command line:}
6767
</p>
6868
<!-- TODO conceal secret w/ JS if possible -->
69-
<pre>java -jar <a href="${rootURL}/jnlpJars/slave.jar">slave.jar</a> -jnlpUrl ${h.inferHudsonURL(request)}${it.url}slave-agent.jnlp -secret ${it.jnlpMac}</pre>
69+
<pre>java${it.launcher.vmargs == null ? '' : ' ' + it.launcher.vmargs} -jar <a href="${rootURL}/jnlpJars/slave.jar">slave.jar</a> -jnlpUrl ${h.inferHudsonURL(request)}${it.url}slave-agent.jnlp -secret ${it.jnlpMac}</pre>
7070
</li>
7171
</j:otherwise>
7272
</j:choose>

0 commit comments

Comments
 (0)