Skip to content

Commit

Permalink
Merge branch 'release/V2.7'
Browse files Browse the repository at this point in the history
  • Loading branch information
gquerret committed Mar 26, 2020
2 parents b2bc401 + 84cf217 commit 044267d
Show file tree
Hide file tree
Showing 328 changed files with 7,875 additions and 1,207 deletions.
14 changes: 7 additions & 7 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,27 @@ pipeline {
// Maven Central deployment: 'mvn -P release clean package verify deploy'
sh "git rev-parse HEAD > current-commit"
def currCommit = readFile('current-commit').replace("\n", "").replace("\r", "")
sh "mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent install -Dmaven.test.failure.ignore=true -Dgit.commit=${currCommit}"
sh "mvn clean javadoc:javadoc install -Dmaven.test.failure.ignore=true -Dgit.commit=${currCommit}"
} else {
sh "mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent package -Dmaven.test.failure.ignore=true"
sh "mvn clean package -Dmaven.test.failure.ignore=true"
}
}
}
archiveArtifacts artifacts: 'openedge-plugin/target/sonar-openedge-plugin-*.jar'
step([$class: 'Publisher', reportFilenamePattern: '**/target/surefire-reports/testng-results.xml'])
}
}

stage ('SonarQube analysis') {
steps {
script {
withEnv(["PATH+MAVEN=${tool name: 'Maven 3', type: 'hudson.tasks.Maven$MavenInstallation'}/bin"]) {
withCredentials([string(credentialsId: 'AdminTokenSonarQube', variable: 'SQ_TOKEN')]) {
withSonarQubeEnv(credentialsId: 'SQToken', installationName: 'RSSW') {
if (("master" == env.BRANCH_NAME) || ("develop" == env.BRANCH_NAME)) {
sh "mvn -Dsonar.host.url=http://sonar.riverside-software.fr -Dsonar.login=${env.SQ_TOKEN} -Dsonar.branch.name=${env.BRANCH_NAME} org.sonarsource.scanner.maven:sonar-maven-plugin:3.6.0.1398:sonar"
} else if (env.BRANCH_NAME.startsWith("release") || env.BRANCH_NAME.startsWith("hotfix")) {
sh "mvn -Dsonar.host.url=http://sonar.riverside-software.fr -Dsonar.login=${env.SQ_TOKEN} -Dsonar.branch.name=${env.BRANCH_NAME} -Dsonar.branch.target=master org.sonarsource.scanner.maven:sonar-maven-plugin:3.6.0.1398:sonar"
sh "mvn -Dsonar.branch.name=${env.BRANCH_NAME} sonar:sonar"
} else {
sh "mvn -Dsonar.host.url=http://sonar.riverside-software.fr -Dsonar.login=${env.SQ_TOKEN} -Dsonar.branch.name=${env.BRANCH_NAME} -Dsonar.branch.target=develop org.sonarsource.scanner.maven:sonar-maven-plugin:3.6.0.1398:sonar"
def targetBranch = env.BRANCH_NAME.startsWith("release") ? "master" : "develop"
sh "mvn -Dsonar.branch.name=${env.BRANCH_NAME} -Dsonar.branch.target=${targetBranch} sonar:sonar"
}
}
}
Expand Down
32 changes: 31 additions & 1 deletion database-parser/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>eu.rssw.openedge.parsers</groupId>
<artifactId>database-parser</artifactId>
<version>2.6.4</version>
<version>2.7.0</version>

<name>OpenEdge database definition lexer and parser</name>
<description>OpenEdge dump files parser</description>
Expand Down Expand Up @@ -77,7 +77,37 @@
</dependencies>

<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>3.7.0.1746</version>
</plugin>
</plugins>
</pluginManagement>

<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.5</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>prepare-package</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.antlr</groupId>
<artifactId>antlr4-maven-plugin</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* OpenEdge plugin for SonarQube
* Copyright (c) 2015-2019 Riverside Software
* Copyright (c) 2015-2020 Riverside Software
* contact AT riverside DASH software DOT fr
*
* This program is free software; you can redistribute it and/or
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* OpenEdge plugin for SonarQube
* Copyright (c) 2015-2019 Riverside Software
* Copyright (c) 2015-2020 Riverside Software
* contact AT riverside DASH software DOT fr
*
* This program is free software; you can redistribute it and/or
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* OpenEdge plugin for SonarQube
* Copyright (c) 2015-2019 Riverside Software
* Copyright (c) 2015-2020 Riverside Software
* contact AT riverside DASH software DOT fr
*
* This program is free software; you can redistribute it and/or
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* OpenEdge plugin for SonarQube
* Copyright (c) 2015-2019 Riverside Software
* Copyright (c) 2015-2020 Riverside Software
* contact AT riverside DASH software DOT fr
*
* This program is free software; you can redistribute it and/or
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* OpenEdge plugin for SonarQube
* Copyright (c) 2015-2019 Riverside Software
* Copyright (c) 2015-2020 Riverside Software
* contact AT riverside DASH software DOT fr
*
* This program is free software; you can redistribute it and/or
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* OpenEdge plugin for SonarQube
* Copyright (c) 2015-2019 Riverside Software
* Copyright (c) 2015-2020 Riverside Software
* contact AT riverside DASH software DOT fr
*
* This program is free software; you can redistribute it and/or
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* OpenEdge plugin for SonarQube
* Copyright (c) 2015-2019 Riverside Software
* Copyright (c) 2015-2020 Riverside Software
* contact AT riverside DASH software DOT fr
*
* This program is free software; you can redistribute it and/or
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* OpenEdge plugin for SonarQube
* Copyright (c) 2015-2019 Riverside Software
* Copyright (c) 2015-2020 Riverside Software
* contact AT riverside DASH software DOT fr
*
* This program is free software; you can redistribute it and/or
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* OpenEdge plugin for SonarQube
* Copyright (c) 2015-2019 Riverside Software
* Copyright (c) 2015-2020 Riverside Software
* contact AT riverside DASH software DOT fr
*
* This program is free software; you can redistribute it and/or
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* OpenEdge plugin for SonarQube
* Copyright (c) 2015-2019 Riverside Software
* Copyright (c) 2015-2020 Riverside Software
* contact AT riverside DASH software DOT fr
*
* This program is free software; you can redistribute it and/or
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* OpenEdge plugin for SonarQube
* Copyright (c) 2015-2019 Riverside Software
* Copyright (c) 2015-2020 Riverside Software
* contact AT riverside DASH software DOT fr
*
* This program is free software; you can redistribute it and/or
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* OpenEdge plugin for SonarQube
* Copyright (c) 2015-2019 Riverside Software
* Copyright (c) 2015-2020 Riverside Software
* contact AT riverside DASH software DOT fr
*
* This program is free software; you can redistribute it and/or
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* OpenEdge plugin for SonarQube
* Copyright (c) 2015-2019 Riverside Software
* Copyright (c) 2015-2020 Riverside Software
* contact AT riverside DASH software DOT fr
*
* This program is free software; you can redistribute it and/or
Expand Down
2 changes: 1 addition & 1 deletion deploy.bat
Original file line number Diff line number Diff line change
@@ -1 +1 @@
mvn -DsonarHome=%SONAR_HOME% org.codehaus.sonar:sonar-dev-maven-plugin::upload
xcopy openedge-plugin\target\sonar-openedge-plugin-*.jar %SONAR_HOME%\extensions\downloads /y
3 changes: 3 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#! /bin/sh
cp -v openedge-plugin/target/sonar-openedge-plugin-*.jar ${SONAR_HOME}/extensions/downloads

36 changes: 35 additions & 1 deletion listing-parser/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>eu.rssw.openedge.parsers</groupId>
<artifactId>listing-parser</artifactId>
<version>2.6.4</version>
<version>2.7.0</version>

<name>OpenEdge listing so-called parser</name>
<description>OpenEdge listing files parser</description>
Expand Down Expand Up @@ -69,6 +69,40 @@
</dependency>
</dependencies>

<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>3.7.0.1746</version>
</plugin>
</plugins>
</pluginManagement>

<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.5</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>prepare-package</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>release</id>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* OpenEdge plugin for SonarQube
* Copyright (c) 2015-2019 Riverside Software
* Copyright (c) 2015-2020 Riverside Software
* contact AT riverside DASH software DOT fr
*
* This program is free software; you can redistribute it and/or
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* OpenEdge plugin for SonarQube
* Copyright (c) 2015-2019 Riverside Software
* Copyright (c) 2015-2020 Riverside Software
* contact AT riverside DASH software DOT fr
*
* This program is free software; you can redistribute it and/or
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* OpenEdge plugin for SonarQube
* Copyright (c) 2015-2019 Riverside Software
* Copyright (c) 2015-2020 Riverside Software
* contact AT riverside DASH software DOT fr
*
* This program is free software; you can redistribute it and/or
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* OpenEdge plugin for SonarQube
* Copyright (c) 2015-2019 Riverside Software
* Copyright (c) 2015-2020 Riverside Software
* contact AT riverside DASH software DOT fr
*
* This program is free software; you can redistribute it and/or
Expand Down
42 changes: 38 additions & 4 deletions openedge-checks/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>eu.rssw.openedge.checks</groupId>
<artifactId>openedge-checks</artifactId>
<version>2.6.4</version>
<version>2.7.0</version>

<name>OpenEdge checks</name>
<description>OpenEdge checks</description>
Expand Down Expand Up @@ -48,18 +48,18 @@
<dependency>
<groupId>org.sonarsource.sonarqube</groupId>
<artifactId>sonar-plugin-api</artifactId>
<version>6.6</version>
<version>7.9</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>eu.rssw.openedge.parsers</groupId>
<artifactId>database-parser</artifactId>
<version>2.6.4</version>
<version>2.7.0</version>
</dependency>
<dependency>
<groupId>eu.rssw.openedge.parsers</groupId>
<artifactId>proparse</artifactId>
<version>2.6.4</version>
<version>2.7.0</version>
</dependency>
<dependency>
<groupId>org.testng</groupId>
Expand All @@ -75,6 +75,40 @@
</dependency>
</dependencies>

<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>3.7.0.1746</version>
</plugin>
</plugins>
</pluginManagement>

<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.5</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>prepare-package</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>release</id>
Expand Down
Loading

0 comments on commit 044267d

Please sign in to comment.