JenkinsFILE

This commit is contained in:
RolandBakunts 2023-01-16 11:46:12 -08:00
parent 484bb0152f
commit 86a18d9adb
2 changed files with 15 additions and 10 deletions

17
Jenkinsfile vendored
View file

@ -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'
}
}
}
}

View file

@ -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")