mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-15 05:41:51 +08:00
40 lines
1.1 KiB
Plaintext
40 lines
1.1 KiB
Plaintext
|
pipeline {
|
||
|
agent any
|
||
|
|
||
|
stages {
|
||
|
stage('Test') {
|
||
|
steps {
|
||
|
dir("Plan") {
|
||
|
script {
|
||
|
try {
|
||
|
sh './gradlew clean test --no-daemon' //run a gradle task
|
||
|
} finally {
|
||
|
junit '**/build/test-results/test/*.xml' //make the junit test results available in any case (success & failure)
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
stage('Checkstyle') {
|
||
|
steps {
|
||
|
dir("Plan") {
|
||
|
script {
|
||
|
sh './gradlew checkstyleMain checkstyleTest'
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
stage('SonarQube analysis') {
|
||
|
steps {
|
||
|
dir("Plan") {
|
||
|
script {
|
||
|
withSonarQubeEnv() {
|
||
|
sh './gradlew sonarqube -Dsonar.organization=player-analytics-plan'
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|