Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

Jenkins/code quality #1368

Merged
merged 56 commits into from
Aug 1, 2017
Merged

Jenkins/code quality #1368

merged 56 commits into from
Aug 1, 2017

Conversation

stevegal
Copy link
Contributor

@stevegal stevegal commented May 6, 2017

Add in a collector for junit/pmd/findbugs/checkstyle for those who don't use sonar.

stevegal and others added 30 commits October 10, 2016 22:55
@stevegal
Copy link
Contributor Author

doh! forgot to set the extra data so the results appear in the UI. I'll add this over the weekend.

@xiaods
Copy link

xiaods commented Jul 8, 2017

please rebase

@stevegal
Copy link
Contributor Author

okay. I'll do that soon.

@stevegal
Copy link
Contributor Author

done

@stevegal
Copy link
Contributor Author

shall I close this PR? Any chance of it getting merged?

@satishc1
Copy link
Collaborator

@stevegal Will look into this one next week. All contributions are welcome. Thanks.

@satishc1
Copy link
Collaborator

@stevegal Thanks for the contribution. To maintain the naming convention, do you mind changing the directory name from

collectors/build/jenkins-codequality-collector/

to

collectors/build/jenkins-codequality/

The artifactId in the pom is correct and needs to be

<artifactId>jenkins-codequality-collector</artifactId>

Copy this file to your server and launch it using :
```
java -JAR jenkins-codequlaity-collector.jar
```
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stevegal typo here.

@@ -0,0 +1,18 @@

FROM docker.io/java:openjdk-8-jdk
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stevegal Please change to

FROM docker.io/openjdk:8-jre

mkdir /hygieia

COPY *.jar /hygieia/
COPY bamboo-build-properties-builder.sh /hygieia/
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stevegal Please change to reflect the correct builder.sh

COPY jenkins-codequality-properties-builder.sh /hygieia/

pom.xml Outdated
@@ -172,6 +186,7 @@
<module>collectors/build/bamboo</module>
<module>collectors/build/jenkins</module>
<module>collectors/build/jenkins-cucumber</module>
<module>collectors/build/jenkins-codequality-collector</module>
<module>collectors/build/sonar</module>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stevegal Change to

<module>collectors/build/jenkins-codequality</module>

pom.xml Outdated
@@ -215,6 +230,7 @@
<module>collectors/build/bamboo</module>
<module>collectors/build/jenkins</module>
<module>collectors/build/jenkins-cucumber</module>
<module>collectors/build/jenkins-codequality-collector</module>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stevegal Change to

<module>collectors/build/jenkins-codequality</module>

@stevegal
Copy link
Contributor Author

stevegal commented Aug 1, 2017

@satishc1 thanks for the comments. I was away from my keyboard for a few days, hence the delay in updating.

@satishc1
Copy link
Collaborator

satishc1 commented Aug 1, 2017

@stevegal No problem. Thanks for the contribution. Will try to merge it this week.

@satishc1
Copy link
Collaborator

satishc1 commented Aug 1, 2017

@tabladrum LGTM

@satishc1 satishc1 merged commit b9ef5f1 into hygieia:master Aug 1, 2017
stevegal added a commit to stevegal/Hygieia that referenced this pull request Sep 8, 2017
* starting jenkins code quality plugin to gather statistics from junit reporter directly

* start of jenkins collector and analyser

* started cleanup of old jobs removed from configuration

* WIP

* added JunitXmlReport and updated the CodeQualityMetricsConverter

* basic jenkins client

* refined the code quality metric

* http jenkins client with basic auth

* springify the beans

* ensure jobs have nice display names and have the collector id

* kinda working first pass

* moce logic to do with job storing into a separate service to help complexity

* make code qulaity data service more robust

* get findbugs visitor pattern in place

* update findbugs visitor prelim

* findbugs & junit working with single pattern

* get timestamp from jenkins job

* update to latest snapshot version

* update collector to work with github orgs

* add in missing banner + log settings

* add project readme

* start of code coverage from jacoco

* collect jacaco xml report

* fixes

* forgot to commit test

* pmd and checkstyle added

* update README with jacoco example

* correct checkstyle default pattern in README

* Update pom.xml

* minimum changes to allow porject to build

* handle no errors available in checkstyle

* Start of JenkinsPublish Build Step

move common model (junit/pmd/findbugs/checkstyle/jacoco) into the core module
start step definition

* add in jelly config for step

* test marker to pick up later

* minimum changes to allow project to build

* try mvn build in quiet mode

* start of plugin step run functionality

* marker for next stage of dev

* add in pmd/findbugs/checkstyle/jacoco support

* working pipeline plugin

* Update mongosrc.js

* publish build data and link code quality to it

* Update code-quality collector name in line with suggestion
Correct Dockerfile
ensure generated properties file is used in docker
Praveen-chaganti pushed a commit to Praveen-chaganti/Hygieia that referenced this pull request Oct 19, 2018
* starting jenkins code quality plugin to gather statistics from junit reporter directly

* start of jenkins collector and analyser

* started cleanup of old jobs removed from configuration

* WIP

* added JunitXmlReport and updated the CodeQualityMetricsConverter

* basic jenkins client

* refined the code quality metric

* http jenkins client with basic auth

* springify the beans

* ensure jobs have nice display names and have the collector id

* kinda working first pass

* moce logic to do with job storing into a separate service to help complexity

* make code qulaity data service more robust

* get findbugs visitor pattern in place

* update findbugs visitor prelim

* findbugs & junit working with single pattern

* get timestamp from jenkins job

* update to latest snapshot version

* update collector to work with github orgs

* add in missing banner + log settings

* add project readme

* start of code coverage from jacoco

* collect jacaco xml report

* fixes

* forgot to commit test

* pmd and checkstyle added

* update README with jacoco example

* correct checkstyle default pattern in README

* Update pom.xml

* minimum changes to allow porject to build

* handle no errors available in checkstyle

* Start of JenkinsPublish Build Step

move common model (junit/pmd/findbugs/checkstyle/jacoco) into the core module
start step definition

* add in jelly config for step

* test marker to pick up later

* minimum changes to allow project to build

* try mvn build in quiet mode

* start of plugin step run functionality

* marker for next stage of dev

* add in pmd/findbugs/checkstyle/jacoco support

* working pipeline plugin

* Update mongosrc.js

* publish build data and link code quality to it

* Update code-quality collector name in line with suggestion
Correct Dockerfile
ensure generated properties file is used in docker
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants