forked from kliakos/sparkjava-war-example
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
30 lines (26 loc) · 929 Bytes
/
Jenkinsfile
File metadata and controls
30 lines (26 loc) · 929 Bytes
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
pipeline {
agent any
tools {
// Install the Maven version configured as "M3" and add it to the path.
maven "M3"
}
stages {
stage ('Build') {
steps {
// Get some code from a GitHub repository
git 'https://github.com/abkaru/sparkjava-war-example.git'
// Run Maven on a Unix agent.
sh "mvn -Dmaven.test.failure.ignore=true clean package"
}
post {
// If Maven was able to run the tests, even if some of the test
// failed, record the test results and archive the jar file.
success {
//junit '**/target/surefire-reports/TEST-*.xml'
archiveArtifacts 'target/*.jar'
// archiveArtifacts 'target/*.war'
}
}
}
}
}