Skip to content

Commit

Permalink
Moving plugin implementation to root of repo
Browse files Browse the repository at this point in the history
* This is the expected project layout of a Jenkins plugin. Otherwise it wont build in CloudBees.
  • Loading branch information
tomasbjerre committed May 2, 2015
1 parent 8c59d22 commit 5fab312
Show file tree
Hide file tree
Showing 34 changed files with 4 additions and 25 deletions.
16 changes: 4 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ There is a screenshot of the configuration GUI [here](https://raw.githubusercont

Available in Jenkins [here](https://wiki.jenkins-ci.org/display/JENKINS/violation-comments-to-stash-plugin).

Also built in [CloudBees](https://jenkins.ci.cloudbees.com/job/plugins/job/violation-comments-to-stash-plugin/).

#Features
* Comment pull requests with code analyzers comments
* Supporting: CheckStyle, CSSLint, JSLint, CodeNarc, CPPLint, FindBugs, FxCop, Gendarme, JCEReport, PEP8, PerlCritic, PMD, PyLint, Simian, StyleCop
Expand Down Expand Up @@ -60,16 +62,8 @@ Instructions for developers.

### Get the code

Clone repo, including submodules.

```
git clone --recursive [email protected]:tomasbjerre/jenkins-violation-comments-to-stash-plugin.git
```

Or if you already cloned the repo.

```
git submodule update --init --recursive
git clone [email protected]:tomasbjerre/jenkins-violation-comments-to-stash-plugin.git
```

### Plugin development
Expand All @@ -79,9 +73,7 @@ There is a ```/build.sh``` that will perform a full build and test the plugin.

Some tests are implemented in maven project in ```/plugin-test```. This is to avoid classpath issues with the plugin. These are web tests that will start Jenkins with the plugin on localhost and perform some configuration tests.

The actual plugin is implemented in ```/plugin```.

A release is created like this, in ```plugin```.
A release is created like this.
```
mvn release:prepare release:perform
```
5 changes: 0 additions & 5 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ cp sandbox/settings.xml ~/.m2/settings.xml
## Build plugin
##
echo Building plugin
cd plugin
mvn -q package || exit 1

##
Expand All @@ -39,7 +38,6 @@ echo Jenkins started at $JENKINS_URL
##
## Test plugin
##
cd ..
cd plugin-test
mvn -q test -Djenkins=$JENKINS_URL -Dheadless=true || exit 1
cd ..
Expand All @@ -48,6 +46,3 @@ cd ..
## Exit
##
build_clean

sleep 5
echo
8 changes: 0 additions & 8 deletions clean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,7 @@
rm -rf target
rm -rf work

cd plugin
rm -rf target
rm -rf work
mvn -q clean
cd ..

cd plugin/violations-plugin
mvn -q clean
cd ../..

cd plugin-test
mvn -q clean
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 5fab312

Please sign in to comment.