[
https://issues.jboss.org/browse/JBIDE-10690?page=com.atlassian.jira.plugi...
]
Nick Boldt edited comment on JBIDE-10690 at 2/17/12 12:53 AM:
--------------------------------------------------------------
Mickael said:
I tried this this command in an "Execute Shell" build
step:
mkdir -p target/surefire-reports/
touch target/surefire-reports/TEST-dummy.xml
And it works well. Builds moves from Red to Orange.
I think we could use it and get rid of the collect.test.results task and
of the new build.xml.
Nick said:
Are we OK recording builds w/o tests as UNSTABLE (orange) ?
We could also just commit a dummy xml file to SVN so there's an actual (albeit
meaningless) test recorded for all component jobs (which we have today via the ant
script). That should continue to result in a STABLE (blue) build, but without the need for
a script (ant, bash or otherwise).
Testing that idea now via this job:
https://hudson.qa.jboss.com/hudson/job/jbosstools-3.3_trunk.component--co...
--> *RESULT* -> build is fine but fails because there are no code coverage file(s)
:(
Which involves this change:
{code}
@@ -89,99 +88,93 @@
<pom>${WORKSPACE}/sources/pom.xml</pom>
<usePrivateRepository>true</usePrivateRepository>
</hudson.tasks.Maven>
- <hudson.tasks.Ant>
- <targets>collect.test.results.for.hudson -q -logger
org.apache.tools.ant.NoBannerLogger</targets>
- <antName>ant-1.7.x</antName>
-
<buildFile>${WORKSPACE}/build/results/collect-test-results.xml</buildFile>
- </hudson.tasks.Ant>
<hudson.tasks.Shell>
<command># script here:
http://anonsvn.jboss.org/repos/jbosstools/trunk/build/publish.sh
. ${WORKSPACE}/build/publish.sh</command>
@@ -108,114 +102,108 @@
</builders>
<publishers>
<hudson.tasks.junit.JUnitResultArchiver>
-
<testResults>sources/tests/**/target/surefire-reports/TEST*.xml</testResults>
+ <testResults>sources/tests/**/target/surefire-reports/TEST*.xml,
build/results/surefire-reports/NoTestsRun/TEST-org.jboss.tools.NoTestsRun.xml</testResults>
<keepLongStdio>false</keepLongStdio>
<testDataPublishers/>
</hudson.tasks.junit.JUnitResultArchiver>
{code}
was (Author: nickboldt):
Mickael said:
I tried this this command in an "Execute Shell" build
step:
mkdir -p target/surefire-reports/
touch target/surefire-reports/TEST-dummy.xml
And it works well. Builds moves from Red to Orange.
I think we could use it and get rid of the collect.test.results task and
of the new build.xml.
Nick said:
Are we OK recording builds w/o tests as UNSTABLE (orange) ?
We could also just commit a dummy xml file to SVN so there's an actual (albeit
meaningless) test recorded for all component jobs (which we have today via the ant
script). That should continue to result in a STABLE (blue) build, but without the need for
a script (ant, bash or otherwise).
Testing that idea now via this job:
https://hudson.qa.jboss.com/hudson/job/jbosstools-3.3_trunk.component--co...
Which involves this change:
{code}
@@ -89,99 +88,93 @@
<pom>${WORKSPACE}/sources/pom.xml</pom>
<usePrivateRepository>true</usePrivateRepository>
</hudson.tasks.Maven>
- <hudson.tasks.Ant>
- <targets>collect.test.results.for.hudson -q -logger
org.apache.tools.ant.NoBannerLogger</targets>
- <antName>ant-1.7.x</antName>
-
<buildFile>${WORKSPACE}/build/results/collect-test-results.xml</buildFile>
- </hudson.tasks.Ant>
<hudson.tasks.Shell>
<command># script here:
http://anonsvn.jboss.org/repos/jbosstools/trunk/build/publish.sh
. ${WORKSPACE}/build/publish.sh</command>
@@ -108,114 +102,108 @@
</builders>
<publishers>
<hudson.tasks.junit.JUnitResultArchiver>
-
<testResults>sources/tests/**/target/surefire-reports/TEST*.xml</testResults>
+ <testResults>sources/tests/**/target/surefire-reports/TEST*.xml,
build/results/surefire-reports/NoTestsRun/TEST-org.jboss.tools.NoTestsRun.xml</testResults>
<keepLongStdio>false</keepLongStdio>
<testDataPublishers/>
</hudson.tasks.junit.JUnitResultArchiver>
{code}
deprecate & remove all refs to ~/trunk/build/build.xml
------------------------------------------------------
Key: JBIDE-10690
URL:
https://issues.jboss.org/browse/JBIDE-10690
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: Build/Releng
Affects Versions: 3.3.0.Beta1
Reporter: Nick Boldt
Assignee: Nick Boldt
Fix For: 3.3.0.Beta1
Pretty sure this old ant script is no longer needed. It should be removed, albeit
carefully.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira