mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-29 18:55:49 +00:00
JenkinsFILE
This commit is contained in:
parent
484bb0152f
commit
86a18d9adb
2 changed files with 15 additions and 10 deletions
17
Jenkinsfile
vendored
17
Jenkinsfile
vendored
|
@ -5,16 +5,21 @@ pipeline {
|
|||
}
|
||||
}
|
||||
stages {
|
||||
stage('Build') {
|
||||
stage('checkstyle') {
|
||||
steps {
|
||||
sh 'chmod +x gradlew'
|
||||
sh './gradlew tasks'
|
||||
sh './gradlew checkstyleMain'
|
||||
|
||||
sh 'ls -a'
|
||||
|
||||
archiveArtifacts artifacts: 'build/reports/checkstyle/main.html'
|
||||
}
|
||||
}
|
||||
stage('test') {
|
||||
steps {
|
||||
sh './gradlew test'
|
||||
}
|
||||
}
|
||||
stage('build') {
|
||||
steps {
|
||||
sh './gradlew build -x test'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -53,10 +53,10 @@ tasks.named('test') {
|
|||
println("Tests is executed!")
|
||||
}
|
||||
|
||||
tasks.build.doLast(){
|
||||
test
|
||||
java.awt.Desktop.desktop.browse "http://127.0.0.1:5500/build/reports/tests/test/index.html".toURI()
|
||||
}
|
||||
// tasks.build.doLast(){
|
||||
// test
|
||||
// java.awt.Desktop.desktop.browse "http://127.0.0.1:5500/build/reports/tests/test/index.html".toURI()
|
||||
// }
|
||||
|
||||
checkstyle {
|
||||
configFile = file("${rootDir}/config/checkstyle/checkstyle.xml")
|
||||
|
|
Loading…
Reference in a new issue