mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-11-18 08:35:16 +01:00
49 lines
1.2 KiB
Groovy
49 lines
1.2 KiB
Groovy
pipeline {
|
|
agent any
|
|
|
|
stages {
|
|
stage('Build') {
|
|
steps {
|
|
dir("Plan") {
|
|
script {
|
|
sh './gradlew shadowJar --parallel'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
stage('Tests') {
|
|
steps {
|
|
dir("Plan") {
|
|
script {
|
|
try {
|
|
sh './gradlew clean test'
|
|
} 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'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|