Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ready/fix pipeline #61

Merged
merged 3 commits into from
Aug 30, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 53 additions & 18 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>plugin</artifactId>
<version>1.625.3</version>
<version>1.580</version>
</parent>

<url>http://wiki.jenkins-ci.org/display/JENKINS/Pretested+Integration+Plugin</url>
Expand Down Expand Up @@ -75,6 +75,8 @@
* mvn compile findbugs:findbugs to use findbugs and get xml report
* mvn checkstyle:checkstyle to do checkstyle analysis and get xml report
* mvn pmd:pmd pmd:cpd to use PMD tool and get xml report for pmd and cpd
* mvn javancss:check will also do java code analysis and report to console
* use mvn javancss:report to make a report in xml and html
* mvn jdepend:generate will do yet another java code analysis and report

* mvn site will generate site report, including all the above results.
Expand Down Expand Up @@ -121,6 +123,7 @@
<plugin>
<groupId>org.jenkins-ci.tools</groupId>
<artifactId>maven-hpi-plugin</artifactId>
<version>1.115</version>
<configuration>
<pluginVersionDescription>${buildNumber}</pluginVersionDescription>
<compatibleSinceVersion>2.0</compatibleSinceVersion>
Expand All @@ -129,7 +132,7 @@


<!--
Use java 1.8. We need this for our testing environment. Java 7 was EOL last year
Use java 1.7. We need this for our testing environment. Java 6 was EOL last year
and i was starting to get some wierd errors with FindBugs plugin. Plugins also require
Java 7 with the version of Jenkins we're using so i decided to move to Java 7 which also soon
is EOL.
Expand All @@ -138,8 +141,8 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>

Expand All @@ -151,7 +154,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.19.1</version>
<version>2.17</version>
<executions>
<execution>
<goals>
Expand All @@ -170,7 +173,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version>
<version>2.17</version>
<configuration>
<excludes>
<exclude>**/CredentialsTest.java</exclude>
Expand All @@ -190,6 +193,7 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.6</version>
<configuration>
<formats>
<format>xml</format> <!-- Jenkins uses the xml format -->
Expand Down Expand Up @@ -251,7 +255,7 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>3.0.4</version>
<version>2.5.5</version>
<configuration>
<xmlOutput>true</xmlOutput>
</configuration>
Expand All @@ -277,6 +281,20 @@
</configuration>
</plugin>


<!--
Java source code complexity analysis, use javancss:check to get result
Included in reporting below to also include it in the site reports.
-->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>javancss-maven-plugin</artifactId>
<version>2.1</version>
<configuration>
<failOnViolation>false</failOnViolation>
</configuration>
</plugin>

<!--
Another Java code metric reporting tool. Included in the site report
as a plugin under reporting.
Expand Down Expand Up @@ -304,19 +322,19 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.19.1</version>
<version>2.17</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.19.1</version>
<version>2.17</version>
</plugin>

<!-- Will include cobertura report in the site report -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.7</version>
<version>2.6</version>
</plugin>

<!--
Expand Down Expand Up @@ -344,7 +362,8 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.4</version>
<version>2.9.1</version>

</plugin>


Expand All @@ -355,9 +374,10 @@
the site lifecycle
-->
<plugin>

<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>3.7</version>
<version>3.2</version>
</plugin>

<!--
Expand All @@ -367,7 +387,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.17</version>
<version>2.12.1</version>
<reportSets>
<reportSet>
<reports>
Expand All @@ -377,6 +397,17 @@
</reportSets>
</plugin>

<!--
Include java complexity metrics in the site report.
Also used in build/plugin as a goal to manually use for developers
or in the build pipeline.
-->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>javancss-maven-plugin</artifactId>
<version>2.1</version>
</plugin>

<!--
Generates cross-reference of the project's source as part of project's reports which other
plugins default links to.
Expand Down Expand Up @@ -428,19 +459,16 @@
</reporting>

<dependencies>

<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>git</artifactId>
<version>2.4.1</version>
</dependency>

<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>git-client</artifactId>
<version>2.2.1</version>
<version>1.19.1</version>
</dependency>

<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>multiple-scms</artifactId>
Expand All @@ -454,7 +482,14 @@
<version>1.37</version>
<optional>true</optional>
</dependency>

<!--
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>matrix-project</artifactId>
<version>1.3</version>
<optional>true</optional>
</dependency>
-->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
Expand Down