title: Find XPath of --httpPort
body: <p>Im trying to change the port in my Jenkins xml file. Having issues identifying the correct xpath.</p>
  
  <pre><code>&lt;service&gt;
    &lt;id&gt;Jenkins&lt;/id&gt;
    &lt;name&gt;Jenkins&lt;/name&gt;
    &lt;description&gt;This service runs Jenkins automation server.&lt;/description&gt;
    &lt;env name="JENKINS_HOME" value="%BASE%"/&gt;
  
    &lt;executable&gt;%BASE%\jre\bin\java&lt;/executable&gt;
    &lt;arguments&gt;-Xrs -Xmx256m -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar "%BASE%\jenkins.war" --httpPort=8080 --webroot="%BASE%\war"&lt;/arguments&gt;
    &lt;logmode&gt;rotate&lt;/logmode&gt;
    &lt;onfailure action="restart" /&gt;
    &lt;extensions&gt;
      &lt;extension enabled="true" 
                 className="winsw.Plugins.RunawayProcessKiller.RunawayProcessKillerExtension"
                 id="killOnStartup"&gt;
        &lt;pidfile&gt;%BASE%\jenkins.pid&lt;/pidfile&gt;
        &lt;stopTimeout&gt;10000&lt;/stopTimeout&gt;
        &lt;stopParentFirst&gt;false&lt;/stopParentFirst&gt;
      &lt;/extension&gt;
    &lt;/extensions&gt;
  &lt;/service&gt;
  </code></pre>
  
  <p>And here is my Ansible Playbook. Im pretty certain I haven't figured out the correct xpath yet.</p>
  
  <pre><code>- hosts: win
    gather_facts: no
    tasks:
    - name: Set port to 8888
      xml:             
        path: C:\Program Files (x86)\Jenkins\jenkins.xml
        xpath: /service/arguments/httpPort
        value: 8888
  </code></pre>
  
  <p>Any idea how to get the xpath of --httpPort?</p>