<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Ok, got it.<br>
    Wouldn't replacing call to this ant invocation by a Script step in
    maven builds with a "touch target/surefire-reports/TEST-dummy.xml"
    be enough?<br>
    (I'm going to install Hudson locally to give a try)<br>
    <br>
    On 02/16/2012 04:01 PM, Nick Boldt wrote:
    <blockquote cite="mid:4F3D1A59.2090401@redhat.com" type="cite">If
      you run a job which assumes there will be junit/surefire test
      reports in the workspace after disabling the tests
      (-Dmaven.test.skip), the job will be marked as failing.
      <br>
      <br>
      The reason this is often useful is that sometimes, we need to skip
      tests just to get all the bits to build in the stack. Often, there
      are components with long-standing test failures (looking at you,
      Maven, ESB, ...) which prevent the automatic firing of downstream
      jobs.
      <br>
      <br>
      So, when I'm babysitting the builds to get out a release to QE (as
      I will be this weekend), sometimes I kick jobs w/ tests disabled.
      The ant script allows the job to appear to pass even if there are
      no test results by generating a fake test results xml file which
      Jenkins can happily parse.
      <br>
      <br>
      ---
      <br>
      <br>
      Since I wrote this script, I've discovered there are other ways to
      link jobs together. We are now able to remove this in favour of
      just having upstream jobs ALWAYS fire their downstream regardless
      of test results [1]. But is that better? Comments to this jira
      [2].
      <br>
      <br>
      [1]
      <a class="moz-txt-link-freetext" href="http://wiki.hudson-ci.org/display/HUDSON/Parameterized+Trigger+Plugin">http://wiki.hudson-ci.org/display/HUDSON/Parameterized+Trigger+Plugin</a>
      <br>
      <br>
      [2] <a class="moz-txt-link-freetext" href="https://issues.jboss.org/browse/JBIDE-10437">https://issues.jboss.org/browse/JBIDE-10437</a>
      <br>
      <br>
      On 02/16/2012 04:27 AM, Mickael Istria wrote:
      <br>
      <blockquote type="cite">What is the feature provided by this
        script? In which context it applies?
        <br>
        I never had trouble to integrate surefire reports in Hudson, and
        never
        <br>
        needed a script to do so. What is the added value of this one?
        <br>
        <br>
        On 02/16/2012 06:40 AM, Nick Boldt wrote:
        <br>
        <blockquote type="cite">If you depend on this old Ant script [1]
          to generate a dummy JUnit
          <br>
          test results file in Hudson (so that should you temporarily
          disable
          <br>
          your tests, the job won't fail), please switch to using this
          new,
          <br>
          simpler one [2].
          <br>
          <br>
          [1]
          <a class="moz-txt-link-freetext" href="http://anonsvn.jboss.org/repos/jbosstools/trunk/build/build.xml">http://anonsvn.jboss.org/repos/jbosstools/trunk/build/build.xml</a>
          <br>
          <br>
          [2]
          <br>
<a class="moz-txt-link-freetext" href="http://anonsvn.jboss.org/repos/jbosstools/trunk/build/results/collect-test-results.xml">http://anonsvn.jboss.org/repos/jbosstools/trunk/build/results/collect-test-results.xml</a>
          <br>
          <br>
          The Hudson config change looks like this as a pseudo-diff:
          <br>
          <br>
          &lt;hudson.tasks.Ant&gt;
          <br>
          &lt;targets&gt;collect.test.results.for.hudson -q -logger
          <br>
          org.apache.tools.ant.NoBannerLogger&lt;/targets&gt;
          <br>
          &lt;antName&gt;ant-1.7.x&lt;/antName&gt;
          <br>
          -
          &lt;buildFile&gt;${WORKSPACE}/build/build.xml&lt;/buildFile&gt;
          <br>
          +
          <br>
&lt;buildFile&gt;${WORKSPACE}/build/results/collect-test-results.xml&lt;/buildFile&gt;
          <br>
          &lt;/hudson.tasks.Ant&gt;
          <br>
          <br>
          If I broke your job and you need my assistance, please post
          complaints
          <br>
          to this jira:
          <br>
          <br>
          <a class="moz-txt-link-freetext" href="https://issues.jboss.org/browse/JBIDE-10690">https://issues.jboss.org/browse/JBIDE-10690</a>
          <br>
          <br>
          Ultimately, I'd like to remove this script entirely in favour
          of
          <br>
          something else (eg., maven) but for now at least the code's
          simpler
          <br>
          and will therefore be easier to rewrite.
          <br>
          <br>
        </blockquote>
        <br>
        <br>
        --
        <br>
        Mickael Istria
        <br>
        Eclipse developer at JBoss, by RedHat
        <a class="moz-txt-link-rfc2396E" href="http://www.jboss.org/tools">&lt;http://www.jboss.org/tools&gt;</a>
        <br>
        My blog <a class="moz-txt-link-rfc2396E" href="http://mickaelistria.wordpress.com">&lt;http://mickaelistria.wordpress.com&gt;</a> - My Tweets
        <br>
        <a class="moz-txt-link-rfc2396E" href="http://twitter.com/mickaelistria">&lt;http://twitter.com/mickaelistria&gt;</a>
        <br>
        <br>
        <br>
        _______________________________________________
        <br>
        jbosstools-dev mailing list
        <br>
        <a class="moz-txt-link-abbreviated" href="mailto:jbosstools-dev@lists.jboss.org">jbosstools-dev@lists.jboss.org</a>
        <br>
        <a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/jbosstools-dev">https://lists.jboss.org/mailman/listinfo/jbosstools-dev</a>
        <br>
      </blockquote>
      <br>
    </blockquote>
    <br>
    <br>
    <div class="moz-signature">-- <br>
      Mickael Istria<br>
      Eclipse developer at <a href="http://www.jboss.org/tools">JBoss,
        by RedHat</a><br>
      <a href="http://mickaelistria.wordpress.com">My blog</a> - <a
        href="http://twitter.com/mickaelistria">My Tweets</a></div>
  </body>
</html>