Plan/Jenkinsfile
2019-08-07 09:29:53 +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'
} 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'
}
}
}
}
}
}
}