forked from sustech-cs304/Teedy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
35 lines (35 loc) · 1019 Bytes
/
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
pipeline {
agent any
stages {
stage('Build') {
steps {
sh 'mvn -B -DskipTests clean package'
}
}
stage('Doc') {
steps {
sh 'mvn site --fail-never'
}
}
stage('pmd') {
steps {
sh 'mvn pmd:pmd'
}
}
stage('Test report') {
steps {
sh 'mvn mvn test --fail-never'
sh 'mvn surefire-report:report'
}
}
}
post {
always {
archiveArtifacts artifacts: '**/target/site/pmd.html', fingerprint: true
archiveArtifacts artifacts: '**/target/**/*.jar', fingerprint: true
archiveArtifacts artifacts: '**/target/**/*.war', fingerprint: true
archiveArtifacts artifacts: '**/target/site/surefire-report.html', fingerprint: true
archiveArtifacts artifacts: '**/target/site/apidocs', fingerprint: true
}
}
}