-
Notifications
You must be signed in to change notification settings - Fork 1
/
Jenkinsfile
49 lines (48 loc) · 1.4 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
46
47
48
49
pipeline {
agent any
stages {
stage('Prepare') {
steps {
// deleteDir()
// sh 'git clone https://github.com/research-iobserve/iobserve-analysis.git'
sh 'rm -rf iobserve-repository'
sh 'git clone https://github.com/research-iobserve/iobserve-repository.git'
// sh 'cd iobserve-analysis'
sh 'PWD=`pwd` ; echo "api.baseline=$PWD/iobserve-repository/mvn-repo/" > gradle.properties'
sh 'cat gradle.properties.template >> gradle.properties'
}
}
stage('Build') {
steps {
sh './gradlew clean'
sh './gradlew build --refresh-dependencies'
}
}
stage('Static Analysis') {
steps {
sh './gradlew check'
}
post {
always {
// Report results of static analysis tools
recordIssues(
enabledForFailure: true,
tools: [
java(),
javaDoc(),
checkStyle(
pattern: '**/build/reports/checkstyle/*.xml'
),
pmdParser(
pattern: '**/build/reports/pmd/*.xml'
),
//spotBugs(
// pattern: '**/build/reports/spotbugs/*.xml'
//)
]
)
}
}
}
}
}