Skip to content

Commit dcf4134

Browse files
committed
Added testing step to jenkinsfile
1 parent 1bb2a85 commit dcf4134

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Jenkinsfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,16 @@ pipeline {
2727
sh 'mvn -B -Drat.skip=true -DskipTests verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=Huntonion_commons-cli -Dsonar.branch.name=dev -Dsonar.branch.target=dev'
2828
}
2929
}
30+
stage('Test') {
31+
steps {
32+
sh 'mvn -Drat.skip=true test'
33+
}
34+
post {
35+
always {
36+
junit 'target/surefire-reports/*.xml'
37+
}
38+
}
39+
}
3040
}
3141
}
3242

0 commit comments

Comments
 (0)