-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathjold
More file actions
38 lines (37 loc) · 1.15 KB
/
jold
File metadata and controls
38 lines (37 loc) · 1.15 KB
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
pipeline {
agent any
stages{
stage('Build') {
steps {
script {
sh 'mvn clean install'
archiveArtifacts artifacts: '**/target/*.jar', fingerprint: true
}
}
}
stage('Unit Testing') {
steps {
script {
sh 'mvn clean test'
junit '**/target/surefire-reports/*.xml'
}
}
}
stage('Integration Testing') {
steps {
script {
sh '[ -d integration-testing-java ] && rm -rf integration-testing-java'
sh 'git clone https://github.com/robsonagapito/integration-testing-java.git'
sh 'cd integration-testing-java && mvn verify'
}
}
}
stage ('Cucumber Reports') {
steps {
cucumber buildStatus: "UNSTABLE",
fileIncludePattern: "**/CucumberReport.json",
jsonReportDirectory: 'integration-testing-java/target/reports'
}
}
}
}