<project name="jenkins-bugs-master-branch" default="sync" basedir=".">

  <!-- Synchronize repositories -->
  <target name="sync" description="Synchronize git repositories">
    <echo>java is ${java.version}</echo>
    <git command="pull">
      <args>
        <arg value="--all"/>
      </args>
    </git>
    <git command="push">
      <args>
        <arg value="cache"/>
        <arg value="--mirror"/>
      </args>
    </git>
  </target>

  <!-- Synchronize repositories -->
  <target name="info" description="Report info about this repo">
    <echo>java is ${java.version}</echo>
    <echo>user dir is ${user.dir}</echo>
    <git command="branch" />
  </target>

  <!-- From https://gist.github.com/davejlong/874521 -->
  <macrodef name="git">
    <attribute name="command" />
    <attribute name="dir" default="" />
    <element name="args" optional="true" />
    <sequential>
      <echo message="git @{command}" />
      <exec executable="git" dir="@{dir}">
        <arg value="@{command}" />
        <args/>
      </exec>
    </sequential>
  </macrodef>

</project>

<project name="jenkins-bugs-master-branch" default="sync" basedir=".">

  <!-- Synchronize repositories -->
  <target name="sync" description="Synchronize git repositories">
    <echo>java is ${java.version}</echo>
    <git command="pull">
      <args>
        <arg value="--all"/>
      </args>
    </git>
    <git command="push">
      <args>
        <arg value="cache"/>
        <arg value="--mirror"/>
      </args>
    </git>
  </target>

  <!-- Synchronize repositories -->
  <target name="info" description="Report info about this repo">
    <echo>java is ${java.version}</echo>
    <echo>user dir is ${user.dir}</echo>
    <git command="branch" />
  </target>

  <!-- Create directory per branch, checkout branch, add cache -->
  <target name="checkout-branches" description="Checkout branches">
    <echo>Checkout branches - TBD</echo>
  </target>

  <!-- From https://gist.github.com/davejlong/874521 -->
  <macrodef name="git">
    <attribute name="command" />
    <attribute name="dir" default="" />
    <element name="args" optional="true" />
    <sequential>
      <echo message="git @{command}" />
      <exec executable="git" dir="@{dir}">
        <arg value="@{command}" />
        <args/>
      </exec>
    </sequential>
  </macrodef>

</project>

Add empty target to checkout branches
Add empty target to checkout branches
