restart jenkins windows code example Example 1: command to run jenkins war file java -jar jenkins.war Example 2: jenkins restart (jenkins_url)/restart