Install Jenkins slave as a Windows service in command line

前端 未结 3 1058
没有蜡笔的小新
没有蜡笔的小新 2020-12-30 10:46

I have been looking a lot on Google on how to install the service in command line (so without manual interaction) but I am stuck on how to get the jenkins-slave.exe

<
3条回答
  •  有刺的猬
    2020-12-30 11:05

    What I would do is:

    • Download the slave.jar file (from the node's page of Jenkins)
    • Copy the java -jar slave.jar -jnlpUrl http:// command from the node's page
    • Paste this command into a new .bat file and save it
    • Register a scheduled task to run this .bat file when Windows starts

提交回复
热议问题