Plan/Jenkinsfile
2019-08-06 12:16:28 +03:00

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 --no-daemon'
} 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'
}
}
}
}
}
}
}