Skip to content

Commit

Permalink
integrate echarts-api plugin (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonsymhoven committed May 22, 2021
1 parent cba5c38 commit 0c5c4b3
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 30 deletions.
6 changes: 6 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<trove4j.version>3.0.3</trove4j.version>
<saxon-he.version>9.9.1-4</saxon-he.version>
<assertj-core.version>3.16.1</assertj-core.version>
<echarts-api.version>5.1.0-2</echarts-api.version>
<!-- Other properties you may want to use:
~ jenkins-test-harness.version: Jenkins Test Harness version you use to test the plugin. For Jenkins version >= 1.580.1 use JTH 2.0 or higher.
~ hpi-plugin.version: The HPI Maven Plugin version used by the plugin..
Expand Down Expand Up @@ -85,6 +86,11 @@
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>branch-api</artifactId>
</dependency>
<dependency>
<groupId>io.jenkins.plugins</groupId>
<artifactId>echarts-api</artifactId>
<version>${echarts-api.version}</version>
</dependency>

<!-- Test Dependencies -->
<dependency>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?jelly escape-by-default='true'?>
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler">
<script src="${rootURL}/plugin/code-coverage-api/scripts/echarts.min.js">
</script>
<script src="${rootURL}/plugin/code-coverage-api/scripts/custom-chart.js">
</script>

<st:adjunct includes="io.jenkins.plugins.echarts"/>
<script src="${rootURL}/plugin/code-coverage-api/scripts/custom-chart.js"/>

<j:set var="lastResult" value="${from.getLastResult().getResult()}"/>
<j:if test="${lastResult != null}">
<div align="bottom">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?jelly escape-by-default='true'?>
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:l="/lib/layout">
<l:layout css="/plugin/code-coverage-api/css/style.css" norefresh="true">
<script src="${rootURL}/plugin/code-coverage-api/scripts/echarts.min.js">
</script>
<script src="${rootURL}/plugin/code-coverage-api/scripts/custom-chart.js">
</script>

<st:adjunct includes="io.jenkins.plugins.echarts"/>
<script src="${rootURL}/plugin/code-coverage-api/scripts/custom-chart.js"/>

<st:include it="${it.owner}" page="sidepanel.jelly"/>
<l:main-panel>
<h1>${%Code Coverage}</h1>
Expand Down
22 changes: 0 additions & 22 deletions src/main/webapp/scripts/echarts.min.js

This file was deleted.

0 comments on commit 0c5c4b3

Please sign in to comment.