forked from notyy/CodeAnalyzerTutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
45 lines (45 loc) · 1.2 KB
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
pipeline {
agent any
stages {
stage('compile') {
steps {
sh 'echo try connect from prev build'
sh 'echo build number is ${BUILD_NUMBER}'
sh 'sbt clean compile'
}
}
stage('unit test') {
steps {
sh 'sbt "testOnly * -- -l com.github.notyy.codeAnalyzer.FunctionalTest"'
}
}
stage('test coverage') {
steps {
sh 'sbt coverage test'
sh 'sbt coverageReport'
sh 'cp -R target/scala-2.12/scoverage-report ./report/'
}
}
stage('rebuild without coverage') {
steps {
sh 'sbt clean compile'
}
}
stage('functional test') {
steps {
sh 'sbt "testOnly * -- -n com.github.notyy.codeAnalyzer.FunctionalTest"'
}
}
stage('performance test') {
steps {
sh 'echo performance test'
}
}
stage('assembly') {
steps {
sh 'sbt assembly'
sh 'echo assembly successfully'
}
}
}
}