mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-28 20:17:42 +01:00
58 lines
1.4 KiB
Groovy
58 lines
1.4 KiB
Groovy
pipeline {
|
|
agent any
|
|
|
|
stages {
|
|
stage('Build') {
|
|
steps {
|
|
dir("Plan") {
|
|
script {
|
|
sh './gradlew clean shadowJar --parallel'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
stage('Tests') {
|
|
steps {
|
|
dir("Plan") {
|
|
script {
|
|
try {
|
|
sh './gradlew test --parallel'
|
|
} finally {
|
|
junit '**/build/test-results/test/*.xml'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
stage('Checkstyle') {
|
|
steps {
|
|
dir("Plan") {
|
|
script {
|
|
sh './gradlew checkstyleMain checkstyleTest --parallel'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
stage('SonarQube analysis') {
|
|
steps {
|
|
dir("Plan") {
|
|
script {
|
|
withSonarQubeEnv() {
|
|
sh './gradlew sonarqube -Dsonar.organization=player-analytics-plan'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
post {
|
|
always {
|
|
dir("Plan") {
|
|
script {
|
|
sh './gradlew clean --parallel'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|