Plan/Jenkinsfile

49 lines
1.2 KiB
Plaintext
Raw Normal View History

pipeline {
agent any
stages {
stage('Build') {
steps {
dir("Plan") {
script {
sh './gradlew shadowJar --parallel'
}
}
}
}
stage('Tests') {
steps {
dir("Plan") {
script {
try {
2019-08-07 14:29:53 +08:00
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'
}
}
}
}
}
}
}