Skip to content

Instantly share code, notes, and snippets.

INFO [main] - /Users/rpau/walkmodhub/testWalkmod/walkmod.xml [ok]
:: loading settings :: url = file:/Users/rpau/Applications/walkmod-1.3.0/config/ivysettings.xml
:: loading settings :: url = jar:file:/Users/rpau/Applications/walkmod-1.3.0/lib/ivy-2.4.0-rc1.jar!/org/apache/ivy/core/settings/ivysettings.xml
:: resolving dependencies :: org.walkmod#walkmod-javalang-plugin-caller;working
confs: [default]
found org.walkmod#walkmod-javalang-plugin;2.3.2 in maven2
[2.3.2] org.walkmod#walkmod-javalang-plugin;[2.0, 3.0)
found org.walkmod#javalang;4.2.2 in maven2
[4.2.2] org.walkmod#javalang;[3.1.0, 5.0.0)
found org.walkmod#merger;1.0.1 in maven2
mongo:
image: mongo
ports:
- "27017:27017"
cassandra:
image: cassandra
hostname: cassandra
ports:
- "9042:9042"
task pmd(type:Exec) {
workingDir '.'
ignoreExitValue = true
commandLine 'pmd', 'pmd', '-dir', '.', '-f', 'xml', '-rulesets', 'http://WALKMODHUBHOST/pmd/REPOID/master/ruleset.xml', '-encoding', 'UTF8'
standardOutput = new FileOutputStream("pmd.xml");
}
task check(type:Exec) {
workingDir '.'
commandLine 'pmd-client', '-H', 'WALKMODHUBHOST', '-R', 'REPOID'
mongo:
image: mongo:3.4
ports:
- "27017:27017"
cassandra:
image: cassandra:3.9
hostname: cassandra
ports:
- "9042:9042"
<plugin>
<groupId>org.walkmod.maven.plugins</groupId>
<artifactId>walkmod-maven-plugin</artifactId>
<version>1.0.3</version>
</plugin>
<properties>
<walkmod.chains>pmd</walkmod.chains>
<walkmod.properties>configurationFile=ruleset.xml</walkmod.properties>
</properties>
@rpau
rpau / Jenkinsfile
Last active March 13, 2017 18:14
Jenkinsfile example
#!groovy
pipeline {
agent any
stages {
stage('Build') {
steps {
sh "mvn package"
}
@rpau
rpau / Jenkinsfile
Last active May 4, 2017 16:25
Jenkinsfile fragment for walkmod
#!groovy
@Library('github.com/walkmod/jenkins-pipeline-shared@maven') _
pipeline {
agent any
stages {
stage ('Fixing Release'){
steps {
walkmodApply(
#!groovy
@Library('github.com/walkmod/jenkins-pipeline-shared@declarative') _
pipeline {
agent any
stages {
stage ('Fixing Release'){
steps {
{
"action": "unassigned",
"number": 373,
"pull_request": {
"url": "https://github.schibsted.io/api/v3/repos/spt-engprod/skynet/pulls/373",
"id": 160796,
"html_url": "https://github.schibsted.io/spt-engprod/skynet/pull/373",
"diff_url": "https://github.schibsted.io/spt-engprod/skynet/pull/373.diff",
"patch_url": "https://github.schibsted.io/spt-engprod/skynet/pull/373.patch",
"issue_url": "https://github.schibsted.io/api/v3/repos/spt-engprod/skynet/issues/373",