title: deploy jar on windows server with jenkins pipeline
body: <p>I have a maven built jar file which could be run as a server. I want to use jenkins-pipeline to deploy this jar file onto my windows 2016 server. I started with a <strong>freestyle</strong> jenkins job, with "Execute Windows batch" configuration:
  <code>
  set BUILD_ID=DontKillMe
  start java -jar MyServer.jar
  </code></p>
  
  <p>The java process successfully spawned on my windows 2016 server.</p>
  
  <p>When I turned to use jenkins pipeline script with same batch commands, it's not as expected -- the process which should contain <code>java -jar MyServer.jar</code> was never spawned.
  The pipeline script I wrote is:
  <code>
  bat '''
  set BUILD_ID=DontKillMe
  start java -jar MyServer.jar
  '''
  </code></p>
  
  <p>The reason I want to have jar starts running in another process is that it could release current jenkins build to following steps.</p>
  
  <p>Could anyone please help with a solution? As long as I can spawn up the java process from batch command in jenkins pipeline (better with no parent process), I would be really grateful.</p>