-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Keeping comments and adjusting checkstyle #37
* Checkstyle now allows empty source attribute. * Comments can optionaly be kept and not removed when new comments are added. * Will no longer re-create identical comments.
- Loading branch information
1 parent
88325dc
commit 61d8abc
Showing
9 changed files
with
110 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
node { | ||
deleteDir() | ||
|
||
stage('Merge') { | ||
sh "git init" | ||
sh "git fetch --no-tags --progress https://github.com/tomasbjerre/violations-test.git +refs/heads/*:refs/remotes/origin/* --depth=200" | ||
sh "git checkout origin/master" | ||
sh "git merge origin/feature/addingcrap" | ||
sh "git log --graph --abbrev-commit --max-count=10" | ||
} | ||
|
||
stage('Analyze') { | ||
sh "./gradlew build" | ||
sh "find" | ||
} | ||
|
||
stage('Static code analysis') { | ||
step([ | ||
$class: 'ViolationsToBitbucketServerRecorder', | ||
config: [ | ||
bitbucketServerUrl: 'http://localhost:7990/', | ||
createCommentWithAllSingleFileComments: false, | ||
createSingleFileComments: true, | ||
projectKey: 'PROJ', | ||
repoSlug: 'violations-test', | ||
pullRequestId: '1', | ||
useUsernamePassword: true, | ||
username: 'admin', | ||
password: 'admin', | ||
useUsernamePasswordCredentials: false, | ||
minSeverity: 'INFO', | ||
keepOldComments: false, | ||
violationConfigs: [ | ||
[ pattern: '.*/checkstyle/.*\\.xml$', parser: 'CHECKSTYLE', reporter: 'Checkstyle' ], | ||
[ pattern: '.*/findbugs/.*\\.xml$', parser: 'FINDBUGS', reporter: 'Findbugs' ], | ||
[ pattern: '.*/pmd/.*\\.xml$', parser: 'PMD', reporter: 'PMD' ], | ||
] | ||
] | ||
]) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters