Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save radeoliveira/80f646f526f9f6dda502264e242ecc1e to your computer and use it in GitHub Desktop.
Save radeoliveira/80f646f526f9f6dda502264e242ecc1e to your computer and use it in GitHub Desktop.

Gist for https://youtu.be/N8AQTlHoBKc

Documentation

Sample service.xml

<service>
  <id>jenkins8080agent</id>
  <name>Jenkins Agent for jenkins:8080</name>
  <description>This service runs the agent process connected to jenkins:8080</description>
  <executable>D:\tools\jdk-11.0.15.10-hotspot\bin\java.exe</executable>
  <arguments>-jar D:\tools\jenkins-agent\agent.jar -jnlpUrl http://jenkins:8080/computer/windows/jenkins-agent.jnlp -secret b66b6def580864901a50b9c8daaeea96f9e7f5537f02eb58bf5f6d1deae4155c -workDir "d:\tools\jenkins-agent"</arguments>
  <log mode="roll" />
  <onfailure action="restart" />
    <serviceaccount>
    <domain>BETA-TWO</domain>
    <user>jenkinsagent</user>
    <password>Password123</password>
    <allowservicelogon>true</allowservicelogon>
  </serviceaccount>
</service>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment