Commit 1dc6ccfb authored by Dennis Hendriks's avatar Dennis Hendriks
Browse files

#34 Code coverage: no Jenkins plugin, just archive it.

 - The Jenkins plugins don't seem to be available.
 - The Jenkins plugins don't show coverage over source code.
parent 587ce8e6
Pipeline #901 passed with stage
in 0 seconds
......@@ -96,7 +96,7 @@ pipeline {
archiveArtifacts 'products/org.eclipse.escet.product/target/products/*-win*.zip'
// Code coverage.
step([$class: 'JacocoPublisher'])
archiveArtifacts 'releng/org.eclipse.escet.releng.tests/target/eclipse-escet-jacoco-aggregate.zip'
}
}
}
......
<!--
Copyright (c) 2010, 2021 Contributors to the Eclipse Foundation
See the NOTICE file(s) distributed with this work for additional
information regarding copyright ownership.
This program and the accompanying materials are made available under the terms
of the MIT License which is available at https://opensource.org/licenses/MIT
SPDX-License-Identifier: MIT
-->
<assembly
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3 http://maven.apache.org/xsd/assembly-1.1.3.xsd">
<formats>
<format>zip</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<fileSets>
<fileSet>
<directory>${project.build.directory}/site/jacoco-aggregate</directory>
<outputDirectory>eclipse-escet-jacoco-aggregate</outputDirectory>
</fileSet>
</fileSets>
</assembly>
......@@ -33,13 +33,34 @@
<version>${jacoco.version}</version>
<executions>
<execution>
<phase>verify</phase>
<phase>generate-resources</phase>
<goals>
<goal>report-aggregate</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Assemble code coverage ZIP. -->
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>assemble-code-coverage-zip</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<finalName>eclipse-escet-jacoco-aggregate</finalName>
<appendAssemblyId>false</appendAssemblyId>
<descriptors>
<descriptor>${basedir}/assembly.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment