-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
38 lines (34 loc) · 846 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
36
37
pipeline {
agent 'any'
triggers{
cron('H H(9-16)/2 * * 1-5')
}
stages {
stage('Clean') {
steps {
bat(script: 'mvn clean')
}
}
stage('Test') {
steps {
bat(script: 'mvn test')
}
}
stage('Compile') {
steps {
bat(script: 'mvn compile')
}
}
stage('Package') {
steps {
bat(script: 'mvn package')
}
}
}
post {
always {
allure includeProperties: false, jdk: '', properties: [[key: 'allure.results.directory', value: 'Next-rez/target/allure-results']], report: 'Next-rez/target/allure-report', results: [[path: 'Next-rez/target/allure-results']]
junit(testResults: '**/target/surefire-reports/*.xml', allowEmptyResults : true, skipPublishingChecks: true)
}
}
}