-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathJenkinsfile
More file actions
43 lines (36 loc) · 711 Bytes
/
Jenkinsfile
File metadata and controls
43 lines (36 loc) · 711 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
31
32
33
34
35
36
37
38
39
40
41
42
43
pipeline {
agent any
tools {
maven 'Maven 3.5.0'
jdk 'Java 8'
}
options {
buildDiscarder(logRotator(numToKeepStr: '5'))
}
triggers {
pollSCM '@daily'
}
stages {
stage('Checkout') {
steps {
git 'https://github.com/dschadow/ApplicationIntrusionDetection'
}
}
stage('Version') {
steps {
sh "mvn versions:set -DnewVersion=${env.BUILD_NUMBER}"
}
}
stage('Build') {
steps {
sh 'mvn -B clean package'
}
}
stage('Archive') {
steps {
archiveArtifacts(artifacts: '**/target/*.jar', fingerprint: true)
junit(testResults: '**/target/**TEST*.xml', allowEmptyResults: true)
}
}
}
}