[JIRA] (JENKINS-55889) JUnit publisher does not automatically pick up test results from the tycho-surefire-plugin

10 views
Skip to first unread message

rombert@java.net (JIRA)

unread,
Jan 31, 2019, 5:44:02 AM1/31/19
to jenkinsc...@googlegroups.com
rombert created an issue
 
Jenkins / Bug JENKINS-55889
JUnit publisher does not automatically pick up test results from the tycho-surefire-plugin
Issue Type: Bug Bug
Assignee: Alvaro Lobato
Components: pipeline-maven-plugin
Created: 2019-01-31 10:43
Environment: Jenkins 2.150.1
Priority: Major Major
Reporter: rombert

I am using the pipeline-maven-plugin with a project that runs multiple Maven times. One of the invocations uses the Eclipse Tycho toolchain to build a set of Eclipse plug-ins. When using Eclipse Tycho, tests are prepared and executed with the tycho-surefire-plugin, which places the results by default in the ${project.build.directory}/surefire-reports directory ( reference ).

It would be great if the test results from tycho would be automatically picked up, just like the surefire and failsafe results.

The affected build is at https://builds.apache.org/job/Sling/job/sling-ide-tooling/ ( although I might try to find a workaround in the meantime ) and is built using a regular Jenkinsfile and the Pipeline library from https://github.com/apache/sling-tooling-jenkins/.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

cleclerc@cloudbees.com (JIRA)

unread,
Mar 15, 2019, 9:03:02 AM3/15/19
to jenkinsc...@googlegroups.com
Cyrille Le Clerc started work on Bug JENKINS-55889
 
Change By: Cyrille Le Clerc
Status: Open In Progress

cleclerc@cloudbees.com (JIRA)

unread,
Mar 15, 2019, 9:03:02 AM3/15/19
to jenkinsc...@googlegroups.com

cleclerc@cloudbees.com (JIRA)

unread,
Mar 15, 2019, 9:03:03 AM3/15/19
to jenkinsc...@googlegroups.com

cleclerc@cloudbees.com (JIRA)

unread,
Mar 15, 2019, 10:49:02 AM3/15/19
to jenkinsc...@googlegroups.com

rombert@apache.org (JIRA)

unread,
Mar 20, 2019, 5:46:04 AM3/20/19
to jenkinsc...@googlegroups.com

Thanks for the fix Cyrille Le Clerc. I am currently unable to verify the fix since I'm not managing the Jenkins instance and an upgrade will take some time.

jerome.joslet@gmail.com (JIRA)

unread,
Dec 19, 2019, 10:36:02 AM12/19/19
to jenkinsc...@googlegroups.com

A workaround is to declare the Maven Surefire plugin in you pom.xml to a folder that does not exists. Jenkins detect the execution and then check for Surefire reports. Since the output folder for reports is the same for Maven Surefire and Tycho Surefire, the publisher retrieves the reports generated by Tycho.

<build>
	<plugins>
		<plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-surefire-plugin</artifactId>
			<configuration>
				<testSourceDirectory>maven-test</testSourceDirectory>
			</configuration>
			<executions>
				<execution>
					<phase>test</phase>
					<goals>
						<goal>test</goal>
					</goals>
				</execution>
			</executions>
		</plugin>
	</plugins>
</build>

Any news for a bug fix to be released ?

This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

cleclerc@cloudbees.com (JIRA)

unread,
Dec 19, 2019, 4:46:03 PM12/19/19
to jenkinsc...@googlegroups.com

Jérôme Joslet I forgot to close the ticket. The enhancement has been shipped in version 3.6.8 shipped in March 2019 https://github.com/jenkinsci/pipeline-maven-plugin/releases/tag/pipeline-maven-3.6.8

The latest version is 3.8.2

cleclerc@cloudbees.com (JIRA)

unread,
Dec 19, 2019, 4:46:03 PM12/19/19
to jenkinsc...@googlegroups.com

jerome.joslet@gmail.com (JIRA)

unread,
Dec 20, 2019, 9:02:05 AM12/20/19
to jenkinsc...@googlegroups.com
Jérôme Joslet commented on Bug JENKINS-55889
 
Re: JUnit publisher does not automatically pick up test results from the tycho-surefire-plugin

Our instance is running with org.jenkins-ci.plugins:pipeline-maven:3.8.2 and the problem is still present.

Here is a project to reproduce: tycho-demo.zip

jerome.joslet@gmail.com (JIRA)

unread,
Dec 20, 2019, 9:02:06 AM12/20/19
to jenkinsc...@googlegroups.com

jerome.joslet@gmail.com (JIRA)

unread,
Dec 20, 2019, 9:03:02 AM12/20/19
to jenkinsc...@googlegroups.com
Jérôme Joslet edited a comment on Bug JENKINS-55889
Our instance is running with {{org.jenkins-ci.plugins:pipeline-maven:3.8.2}} and the problem is still present.

Here is a project to reproduce:  [^tycho-demo.zip]

This project should be unstable but it succeed.

jerome.joslet@gmail.com (JIRA)

unread,
Dec 20, 2019, 9:04:03 AM12/20/19
to jenkinsc...@googlegroups.com
Jérôme Joslet edited a comment on Bug JENKINS-55889
Our instance is running with {{org.jenkins-ci.plugins:pipeline-maven:3.8.2}} and the problem is still present.

Here is a project to reproduce:  [^tycho-demo.zip]

This project should be unstable but it succeed and no tests are reported .
Reply all
Reply to author
Forward
0 new messages